mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
448e63d627
commit
741ca76912
9 changed files with 39 additions and 35 deletions
|
@ -43,8 +43,8 @@ class WeakRef<Delegator
|
|||
def initialize(orig)
|
||||
super
|
||||
@__id = orig.__id__
|
||||
ObjectSpace.define_finalizer orig, @@final
|
||||
ObjectSpace.defin_finalizer self, @@final
|
||||
ObjectSpace.define_finalizer orig, @@final
|
||||
ObjectSpace.define_finalizer self, @@final
|
||||
ID_MAP[@__id] = [] unless ID_MAP[@__id]
|
||||
ID_MAP[@__id].push self.__id__
|
||||
ID_REV_MAP[self.id] = @__id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue