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 TypeMethodDescriptionvoidadd(IRubyObject object) voidaddFinalizer(IRubyObject object, IRubyObject proc) Deprecated.addFinalizer(ThreadContext context, IRubyObject object, IRubyObject proc) static longcalculateObjectId(Object object) longcreateAndRegisterObjectId(IRubyObject rubyObject) id2ref(long id) longidOf(IRubyObject rubyObject) Deprecated.iterator(RubyModule rubyClass) voidregisterObjectId(long id, IRubyObject object) voidremoveFinalizers(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
-