Skip to content

Commit

Permalink
* gc.c , gc.h (rb_obj_info): export obj_info(VALUE) for debugging.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
ko1 committed May 31, 2015
1 parent c542165 commit 3d410dd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Mon Jun 1 04:11:48 2015 Koichi Sasada <[email protected]>

* gc.c , gc.h (rb_obj_info): export obj_info(VALUE) for debugging.

Mon Jun 1 03:52:55 2015 Koichi Sasada <[email protected]>

* test/ruby/test_gc.rb: increase timeout seconds for GC stressful
Expand Down
11 changes: 11 additions & 0 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8975,6 +8975,17 @@ obj_info(VALUE obj)
}
#endif

const char *
rb_obj_info(VALUE obj)
{
if (!rb_special_const_p(obj)) {
return obj_info(obj);
}
else {
return obj_type_name(obj);
}
}

#if GC_DEBUG

void
Expand Down
2 changes: 2 additions & 0 deletions gc.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ int ruby_get_stack_grow_direction(volatile VALUE *addr);
#endif
#define IS_STACK_DIR_UPPER() STACK_DIR_UPPER(1,0)

const char *rb_obj_info(VALUE obj);

RUBY_SYMBOL_EXPORT_BEGIN

/* exports for objspace module */
Expand Down

0 comments on commit 3d410dd

Please sign in to comment.