ruby-changes:28932
From: ko1 <ko1@a...>
Date: Thu, 30 May 2013 00:10:41 +0900 (JST)
Subject: [ruby-changes:28932] ko1:r40984 (trunk): * gc.c (gc_profile_enable): rest_sweep() to finish last GC.
ko1 2013-05-30 00:10:28 +0900 (Thu, 30 May 2013) New Revision: 40984 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40984 Log: * gc.c (gc_profile_enable): rest_sweep() to finish last GC. Profiling record is allocated at first of marking phase. Enable at lazy sweeping may cause an error (SEGV). Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 40983) +++ ChangeLog (revision 40984) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu May 30 00:08:14 2013 Koichi Sasada <ko1@a...> + + * gc.c (gc_profile_enable): rest_sweep() to finish last GC. + Profiling record is allocated at first of marking phase. + Enable at lazy sweeping may cause an error (SEGV). + Wed May 29 10:33:27 2013 Koichi Sasada <ko1@a...> * hash.c: fix WB bug. Index: gc.c =================================================================== --- gc.c (revision 40983) +++ gc.c (revision 40984) @@ -142,7 +142,7 @@ static ruby_gc_params_t initial_params = https://github.com/ruby/ruby/blob/trunk/gc.c#L142 #endif #ifndef GC_PROFILE_MORE_DETAIL -#define GC_PROFILE_MORE_DETAIL 0 +#define GC_PROFILE_MORE_DETAIL 1 #endif #ifndef GC_ENABLE_LAZY_SWEEP #define GC_ENABLE_LAZY_SWEEP 1 @@ -5254,7 +5254,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/gc.c#L5254 gc_profile_enable(void) { rb_objspace_t *objspace = &rb_objspace; - + rest_sweep(objspace); objspace->profile.run = TRUE; return Qnil; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/