[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-core
Subject: Re: _id2ref bug? (REPRODUCED, short)
From: matz () ruby-lang ! org (Yukihiro Matsumoto)
Date: 2003-08-15 0:21:39
[Download RAW message or body]
Hi,
In message "Re: _id2ref bug? (REPRODUCED, short)"
on 03/08/15, Ryan Pavlik <rpav@users.sf.net> writes:
|I was wrong, here's a short example that reproduces the problem exactly.
Thank you. This is what I need. The following patch should fix the
problem.
matz.
--- gc.c 14 Aug 2003 17:19:23 -0000 1.155
+++ gc.c 15 Aug 2003 00:19:46 -0000
@@ -1641,3 +1641,3 @@ id2ref(obj, id)
}
- if (RBASIC(ptr)->klass == 0) {
+ if (BUILTIN_TYPE(ptr) == 0 || RBASIC(ptr)->klass == 0) {
rb_raise(rb_eRangeError, "0x%lx is recycled object", p0);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic