Package org.jruby.runtime
Class ObjectSpace
java.lang.Object
org.jruby.runtime.ObjectSpace
FIXME: This version is faster than the previous, but both suffer from a
crucial flaw: It is impossible to create an ObjectSpace with an iterator
that doesn't either: a. hold on to objects that might otherwise be collected
or b. have no way to guarantee that a call to hasNext() will be correct or
that a subsequent call to next() will produce an object. For our purposes,
for now, this may be acceptable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(IRubyObject object) void
addFinalizer
(IRubyObject object, IRubyObject proc) Deprecated.addFinalizer
(ThreadContext context, IRubyObject object, IRubyObject proc) static long
calculateObjectId
(Object object) long
createAndRegisterObjectId
(IRubyObject rubyObject) id2ref
(long id) long
idOf
(IRubyObject rubyObject) Deprecated.iterator
(RubyModule rubyClass) void
registerObjectId
(long id, IRubyObject object) void
removeFinalizers
(long id)
-
Constructor Details
-
ObjectSpace
public ObjectSpace()
-
-
Method Details
-
registerObjectId
-
calculateObjectId
-
createAndRegisterObjectId
-
id2ref
-
idOf
Deprecated. -
addFinalizer
Deprecated. -
addFinalizer
-
removeFinalizers
public void removeFinalizers(long id) -
add
-
iterator
-