From 99ebeaee0a6acb48a5c65618aecdecb3bbfaabbc Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 10 Oct 2002 07:00:07 +0000 Subject: [PATCH] * lib/weakref.rb (WeakRef::@@final): use Hash#delete. * lib/weakref.rb (WeakRef::__getobj__): examin if alive or not by ID_REV_MAP to deal with recycled object. [ruby-dev:18472] * lib/weakref.rb (WeakRef::weakref_alive?): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 9 +++++++++ lib/weakref.rb | 18 +++++++----------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce71a69c86..60dd8d1f13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Thu Oct 10 15:20:18 2002 Nobuyoshi Nakada + + * lib/weakref.rb (WeakRef::@@final): use Hash#delete. + + * lib/weakref.rb (WeakRef::__getobj__): examin if alive or not by + ID_REV_MAP to deal with recycled object. [ruby-dev:18472] + + * lib/weakref.rb (WeakRef::weakref_alive?): ditto. + Wed Oct 9 07:11:25 2002 Nobuyoshi Nakada * gc.c (gc_sweep): also adjust heaps_limits when free unused heap diff --git a/lib/weakref.rb b/lib/weakref.rb index 6861fde5f5..2e2a55ebe6 100644 --- a/lib/weakref.rb +++ b/lib/weakref.rb @@ -25,15 +25,15 @@ class WeakRef