serialization and rematerialization of CompiledMethods, assistance needed!
Chris Muller
afunkyobject at yahoo.com
Thu Feb 21 16:12:06 UTC 2002
> That number should be the number of bytecodes plus the number of trailer
> bytes. This should get the right sized method:
>
> copy _ (CompiledMethod newMethod: m endPC - m initialPC + 1 + 4 header: m
> header)
Thank you Bob, I shall try that! I suppose the + 1 + 4 is to assist in
revealing the structure of the CompiledMethod. Perhaps a meaningful API in
CompiledMethod would be suitable for accessing the necessary pieces of its
structure at some time in the future.
Regards,
Chris
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
More information about the Squeak-dev
mailing list
|