Attached is the diff of changes that I made to detach the runtime from RubyObject. It sets the runtime into a thread local 'currentInstance' when the runtime is created. It also adds a metaClassName to RubyObject so that the metaclass can be reattached when an object is deserialized or loaded for the db. The runtime is also detached from RubyNil and RubyBoolean.

If the changes are rolled into the trunk, we will have to fix Goldspike to set the current instance.
 

Attachment: persistence.diff
Description: Binary data


On Aug 13, 2007, at 12:32 PM, Charles Oliver Nutter wrote:

Alan McKean wrote:
Where in the source do I setCurrentInstance() for Goldspike? I would like to make the change and resubmit my diff for the persistence/serialization.

I'm looking forward to your updated diff. I would like to profile it a bit on a few tests and see if the performance impact is as minimal as I hope. Since it provides a general-purpose way to detach/reattach objects, it would be generally useful. So the plan for the moment is to go forward with it.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to