Reinout Heeck wrote:
> Hernán Morales wrote:
>>Hello all there.
>>This is my first message to the list,
>
> Welcome!
>
>>and I just want
>>to know if possible, how to add (the easiest way) an
>>instance variable to CompiledMethod class, without
>>breaking the system of course.
>
>
> Wow, you are try something not many people on this list have done ;-)
>
> Have you tried it already? What happens if you browse to CompiledMethod and
> 'acccept' the class definition with your new instance variable added?
>
> I guess it is important that you add your new ivar as the last one after the
> existing ivars since the VM knows the location of the existing ivars.
Correct.
>
> Please let us know what happens, I'm curious ;-)
No visible difference, the image reacts just as before.
But I did not do any thorough testing.
>
>
> If this doesn't break your system you will possibly have incompatibilities
> with some libraries, one that comes to mind is the parcel saving/loading
> mechanism.
And the subclasses of CompiledMethod are affected as well.
E.g. you need to perform ExternalMethod install to inform the VM before doing any
DLLCC calls.
Ralf