Re: VM images and working in the VM image

"J J" <[email protected]> Sun, 13 May 2007 16:07:43 +0000
Newsgroups gmane.comp.lang.smalltalk.strongtalk
Message-ID <[email protected]>
>From: tim Rowledge <[email protected]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: Re: VM images and working in the VM image
>Date: Sat, 12 May 2007 20:40:16 -0700
>
>Of course objects that are instances of altered classes change; to do
>other wise would be lame.
>Methods are invoked by the gazillion during class changing package
>loads; since the loading is done by methods running how could it be
>otherwise? There's no magical stuff going on - a file is opened, the
>new code is read in, each method is compiled and installed and in use
>immediately.

I think the missing data here is:  When a class changes "shape", the old 
class gets temporarily moved (in Squeak it becomes a class with "Obsolete" 
appended to the front).  All running methods have a reference to this class, 
and thus it stays around until there are no more methods using it.  But the 
new class instantly takes over for all new messages, so in this way the 
system can change the shape of objects live without breaking running code.

It should be noted that Erlang behaves in a similar way to allow live system 
upgrades as well.

Thanks,
Jason

_________________________________________________________________
Catch suspicious messages before you open them—with Windows Live Hotmail. 
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_protection_0507


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Strongtalk-general" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/strongtalk-general?hl=en
-~----------~----~----~----~------~----~------~--~---