From 52c1331763d8b9b8d6362987e6f8847b65ed7f57 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 11 Oct 2013 18:27:18 +0000 Subject: * class.c, variable.c, gc.c (rb_class_tbl): removed. * vm.c, vm_core.h (rb_vm_add_root_module): added to register as a defined root module or class. This guard helps mark miss from defined classes/modules they are only refered from C's global variables in C-exts. Basically, it is extension's bug. Register to hash object VM has. Marking a hash objects allows generational GC supports. * gc.c (RGENGC_PRINT_TICK): disable (revert). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index 2d489ac679..77ab210923 100644 --- a/gc.c +++ b/gc.c @@ -535,7 +535,6 @@ VALUE *ruby_initial_gc_stress_ptr = &rb_objspace.gc_stress; int ruby_gc_debug_indent = 0; VALUE rb_mGC; -extern st_table *rb_class_tbl; int ruby_disable_gc_stress = 0; void rb_gcdebug_print_obj_condition(VALUE obj); @@ -3453,7 +3452,7 @@ gc_mark_stacked_objects(rb_objspace_t *objspace) shrink_stack_chunk_cache(mstack); } -#define RGENGC_PRINT_TICK 1 +#define RGENGC_PRINT_TICK 0 /* the following code is only for internal tuning. */ /* Source code to use RDTSC is quoted and modified from @@ -3597,9 +3596,6 @@ gc_marks_body(rb_objspace_t *objspace, int full_mark) MARK_CHECKPOINT; rb_gc_mark_global_tbl(); - MARK_CHECKPOINT; - mark_tbl(objspace, rb_class_tbl); - /* mark generic instance variables for special constants */ MARK_CHECKPOINT; rb_mark_generic_ivar_tbl(); -- cgit v1.2.3