diff options
author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-06 05:18:40 +0000 |
---|---|---|
committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-06 05:18:40 +0000 |
commit | fbece268c7c58c32970b581712c8c3d662b20ed1 (patch) | |
tree | 7f100d792173c97164c592c14ad82feda6631dcf | |
parent | 15d26c3fd9a95f6fa14bc4faae7e1b8e9a07e2b3 (diff) | |
download | ruby-fbece268c7c58c32970b581712c8c3d662b20ed1.tar.gz |
* ext/objspace/object_tracing.c: rename allocation_info to
lookup_allocation_info. At times I confused "struct
allocation_info" with "function allocation_info".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/objspace/object_tracing.c | 12 |
2 files changed, 12 insertions, 6 deletions
@@ -1,3 +1,9 @@ +Thu Jun 6 14:16:37 2013 Narihiro Nakamura <authornari@gmail.com> + + * ext/objspace/object_tracing.c: rename allocation_info to + lookup_allocation_info. At times I confused "struct + allocation_info" with "function allocation_info". + Thu Jun 6 13:57:06 2013 Narihiro Nakamura <authornari@gmail.com> * ext/objspace/object_tracing.c: allocation_info function isn't diff --git a/ext/objspace/object_tracing.c b/ext/objspace/object_tracing.c index 2b98383105..f10b071899 100644 --- a/ext/objspace/object_tracing.c +++ b/ext/objspace/object_tracing.c @@ -164,7 +164,7 @@ trace_object_allocations(VALUE objspace) } static struct allocation_info * -allocation_info(VALUE obj) +lookup_allocation_info(VALUE obj) { if (traceobj_arg) { struct allocation_info *info; @@ -178,7 +178,7 @@ allocation_info(VALUE obj) static VALUE allocation_sourcefile(VALUE objspace, VALUE obj) { - struct allocation_info *info = allocation_info(obj); + struct allocation_info *info = lookup_allocation_info(obj); if (info) { return info->path ? rb_str_new2(info->path) : Qnil; } @@ -190,7 +190,7 @@ allocation_sourcefile(VALUE objspace, VALUE obj) static VALUE allocation_sourceline(VALUE objspace, VALUE obj) { - struct allocation_info *info = allocation_info(obj); + struct allocation_info *info = lookup_allocation_info(obj); if (info) { return INT2FIX(info->line); } @@ -202,7 +202,7 @@ allocation_sourceline(VALUE objspace, VALUE obj) static VALUE allocation_class_path(VALUE objspace, VALUE obj) { - struct allocation_info *info = allocation_info(obj); + struct allocation_info *info = lookup_allocation_info(obj); if (info) { return info->class_path ? rb_str_new2(info->class_path) : Qnil; } @@ -214,7 +214,7 @@ allocation_class_path(VALUE objspace, VALUE obj) static VALUE allocation_method_id(VALUE objspace, VALUE obj) { - struct allocation_info *info = allocation_info(obj); + struct allocation_info *info = lookup_allocation_info(obj); if (info) { return info->mid; } @@ -226,7 +226,7 @@ allocation_method_id(VALUE objspace, VALUE obj) static VALUE allocation_generation(VALUE objspace, VALUE obj) { - struct allocation_info *info = allocation_info(obj); + struct allocation_info *info = lookup_allocation_info(obj); if (info) { return SIZET2NUM(info->generation); } |