diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-29 15:10:28 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-29 15:10:28 +0000 |
commit | 6e19585ac7dc38810a39f597413279afc1c92bf0 (patch) | |
tree | 2a4768f56389c8b5c303232322b3420211f40cbb /gc.c | |
parent | f85733a7ce27f28756509462a5d3302854d375c7 (diff) | |
download | ruby-6e19585ac7dc38810a39f597413279afc1c92bf0.tar.gz |
* 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).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -142,7 +142,7 @@ static ruby_gc_params_t initial_params = { #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 gc_profile_enable(void) { rb_objspace_t *objspace = &rb_objspace; - + rest_sweep(objspace); objspace->profile.run = TRUE; return Qnil; } |