mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
* gc.c (gc_profile_record_get): should return an empty array
when profiling is active. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7bdb9fe17f
commit
661cf78bef
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Dec 18 17:03:00 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* gc.c (gc_profile_record_get): should return an empty array
|
||||||
|
when profiling is active.
|
||||||
|
|
||||||
Wed Dec 18 16:49:40 2013 Koichi Sasada <ko1@atdot.net>
|
Wed Dec 18 16:49:40 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* gc.c (gc_profile_clear, gc_profile_enable): remove rest_sweep().
|
* gc.c (gc_profile_clear, gc_profile_enable): remove rest_sweep().
|
||||||
|
|
2
gc.c
2
gc.c
|
@ -7000,7 +7000,7 @@ gc_profile_record_get(void)
|
||||||
size_t i;
|
size_t i;
|
||||||
rb_objspace_t *objspace = (&rb_objspace);
|
rb_objspace_t *objspace = (&rb_objspace);
|
||||||
|
|
||||||
if (!gc_prof_enabled(objspace)) {
|
if (!objspace->profile.run) {
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue