summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-18 08:04:08 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-18 08:04:08 +0000
commit661cf78bef8db2c55ae1511eadd1e918f63efa8d (patch)
tree4cb97abfecee65c50caa5083b1d5baf57ec7a138 /gc.c
parent7bdb9fe17fe649023d3c5422b76a3634c48791ab (diff)
* 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
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 8a1acf2738..5330f35d3d 100644
--- a/gc.c
+++ b/gc.c
@@ -7000,7 +7000,7 @@ gc_profile_record_get(void)
size_t i;
rb_objspace_t *objspace = (&rb_objspace);
- if (!gc_prof_enabled(objspace)) {
+ if (!objspace->profile.run) {
return Qnil;
}