[Vm-dev] Integer comparition primitive failures on Cog
Igor Stasenko
siguctua at gmail.com
Mon May 2 14:20:07 UTC 2011
On 2 May 2011 15:46, Igor Stasenko <siguctua at gmail.com> wrote:
> Btw,
>
> i don't like this code:
>
> self assertClassOf: floatOrInt
> is: (objectMemory splObj: ClassFloat)
> compactClassIndex: ClassFloatCompactIndex.
>
btw, Cog is suspectible to have bugs if during run time you will
change a class to be no longer compact or
(and then installing a different class to be compact on same compact
classes array index as before).
To avoid that, there should be a primitive which should refresh
compact indices for most used classes,
to avoid bugs.
(The StackInterpreter>>checkAssumedCompactClasses should be run each
time when some class become (un)compact).
--
Best regards,
Igor Stasenko AKA sig.
More information about the Vm-dev
mailing list