* 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
This commit is contained in:
parent
f85733a7ce
commit
6e19585ac7
@ -1,3 +1,9 @@
|
|||||||
|
Thu May 30 00:08:14 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* 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@atdot.net>
|
Wed May 29 10:33:27 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* hash.c: fix WB bug.
|
* hash.c: fix WB bug.
|
||||||
|
4
gc.c
4
gc.c
@ -142,7 +142,7 @@ static ruby_gc_params_t initial_params = {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef GC_PROFILE_MORE_DETAIL
|
#ifndef GC_PROFILE_MORE_DETAIL
|
||||||
#define GC_PROFILE_MORE_DETAIL 0
|
#define GC_PROFILE_MORE_DETAIL 1
|
||||||
#endif
|
#endif
|
||||||
#ifndef GC_ENABLE_LAZY_SWEEP
|
#ifndef GC_ENABLE_LAZY_SWEEP
|
||||||
#define GC_ENABLE_LAZY_SWEEP 1
|
#define GC_ENABLE_LAZY_SWEEP 1
|
||||||
@ -5254,7 +5254,7 @@ static VALUE
|
|||||||
gc_profile_enable(void)
|
gc_profile_enable(void)
|
||||||
{
|
{
|
||||||
rb_objspace_t *objspace = &rb_objspace;
|
rb_objspace_t *objspace = &rb_objspace;
|
||||||
|
rest_sweep(objspace);
|
||||||
objspace->profile.run = TRUE;
|
objspace->profile.run = TRUE;
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user