* gc.c (obj_info): show allocation site if GC_DEBUG is not 0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2015-03-19 07:16:27 +00:00
parent f537854ff3
commit 9546ba4605
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Thu Mar 19 16:15:24 2015 Koichi Sasada <ko1@atdot.net>
* gc.c (obj_info): show allocation site if GC_DEBUG is not 0.
Thu Mar 19 16:12:01 2015 Koichi Sasada <ko1@atdot.net>
* gc.c (newobj_of): fix RGENGC_OLD_NEWOBJ_CHECK logics.

4
gc.c
View File

@ -8812,6 +8812,10 @@ obj_info(VALUE obj)
C(RVALUE_WB_UNPROTECTED_BITMAP(obj), "U"),
obj_type_name(obj));
#if GC_DEBUG
snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s @%s:%d", buff, RANY(obj)->file, RANY(obj)->line);
#endif
#ifdef HAVE_VA_ARGS_MACRO
switch (BUILTIN_TYPE(obj)) {
case T_NODE: