Skip to content

Commit 661cf78

Browse files
committed
* 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
1 parent 7bdb9fe commit 661cf78

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Wed Dec 18 17:03:00 2013 Koichi Sasada <ko1@atdot.net>
2+
3+
* gc.c (gc_profile_record_get): should return an empty array
4+
when profiling is active.
5+
16
Wed Dec 18 16:49:40 2013 Koichi Sasada <ko1@atdot.net>
27

38
* gc.c (gc_profile_clear, gc_profile_enable): remove rest_sweep().

gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7000,7 +7000,7 @@ gc_profile_record_get(void)
70007000
size_t i;
70017001
rb_objspace_t *objspace = (&rb_objspace);
70027002

7003-
if (!gc_prof_enabled(objspace)) {
7003+
if (!objspace->profile.run) {
70047004
return Qnil;
70057005
}
70067006

0 commit comments

Comments
 (0)