public void registerObjectId(long id, IRubyObject object) { synchronized (identities) { cleanIdentities(); identities.put(id, new IdReference(object, id, deadIdentityReferences)); identitiesByObject.put(object, id); } }
public IRubyObject id2ref(long id) { synchronized (identities) { cleanIdentities(); IdReference reference = identities.get(id); if (reference == null) { return null; } return reference.get(); } }
public IRubyObject id2ref(long id) { synchronized (identities) { cleanIdentities(); IdReference reference = identities.get(id); if (reference == null) { return null; } return reference.get(); } }
public void registerObjectId(long id, IRubyObject object) { synchronized (identities) { cleanIdentities(); identities.put(id, new IdReference(object, id, deadIdentityReferences)); identitiesByObject.put(object, id); } }
public void registerObjectId(long id, IRubyObject object) { synchronized (identities) { cleanIdentities(); identities.put(id, new IdReference(object, id, deadIdentityReferences)); identitiesByObject.put(object, id); } }
public IRubyObject id2ref(long id) { synchronized (identities) { cleanIdentities(); IdReference reference = (IdReference) identities.get(Long.valueOf(id)); if (reference == null) { return null; } return (IRubyObject) reference.get(); } }
public void registerObjectId(long id, IRubyObject object) { synchronized (identities) { cleanIdentities(); identities.put(id, new IdReference(object, id, deadIdentityReferences)); identitiesByObject.put(object, id); } }
public IRubyObject id2ref(long id) { synchronized (identities) { cleanIdentities(); IdReference reference = (IdReference) identities.get(Long.valueOf(id)); if (reference == null) { return null; } return (IRubyObject) reference.get(); } }