mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (gc_mark_ptr): remove debug code for #11244.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
38094dd7f4
commit
1be5cb6371
2 changed files with 4 additions and 11 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Oct 29 14:07:54 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* gc.c (gc_mark_ptr): remove debug code for #11244.
|
||||||
|
|
||||||
Thu Oct 29 10:08:33 2015 Eric Wong <e@80x24.org>
|
Thu Oct 29 10:08:33 2015 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* variable.c (struct autoload_state): usable as wait-queue head
|
* variable.c (struct autoload_state): usable as wait-queue head
|
||||||
|
|
11
gc.c
11
gc.c
|
@ -4235,17 +4235,6 @@ static void
|
||||||
gc_mark_ptr(rb_objspace_t *objspace, VALUE obj)
|
gc_mark_ptr(rb_objspace_t *objspace, VALUE obj)
|
||||||
{
|
{
|
||||||
if (LIKELY(objspace->mark_func_data == NULL)) {
|
if (LIKELY(objspace->mark_func_data == NULL)) {
|
||||||
/* check code for Bug #11244 */
|
|
||||||
if (BUILTIN_TYPE(obj) == T_NONE) {
|
|
||||||
if (objspace->rgengc.parent_object) {
|
|
||||||
rb_bug("gc_mark_ptr: obj is %s (parent: %s)", obj_info(obj),
|
|
||||||
obj_info(objspace->rgengc.parent_object));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
rb_bug("gc_mark_ptr: obj is %s (parent is not old)", obj_info(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rgengc_check_relation(objspace, obj);
|
rgengc_check_relation(objspace, obj);
|
||||||
if (!gc_mark_set(objspace, obj)) return; /* already marked */
|
if (!gc_mark_set(objspace, obj)) return; /* already marked */
|
||||||
gc_aging(objspace, obj);
|
gc_aging(objspace, obj);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue