[Vm-dev] Simulator in Pharo 3

Eliot Miranda eliot.miranda at gmail.com
Fri Feb 14 23:15:01 UTC 2014


On Fri, Feb 14, 2014 at 2:55 PM, Stefan Marr <smalltalk at stefan-marr.de>wrote:

>
> Hi Eliot:
>
> On 14 Feb 2014, at 23:48, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> > In the StackInterpreterSimulator, the various #run... methods do
> unconditionally the initialization of stack pages and initial context.
> > This looks wrong to me, especially since the comment of #runForNBytes:
> says that I should be able to use it repeatedly.
> > I would move the initialization to #initializeInterpreter: in
> StackInterpreterSimulator and remove it from all the run methods. See [1].
> >
> > I agree.  This would be really nice.  But alas the stack zone must be
> alloca'ed when first entering the interpreter :-(.
>
> My change is purely in the simulator. I doubt that it has any negative
> consequences. At least with my superficial understanding.
>

Good point.  I think you may be right.  I'll give it a go.


>
> See
> https://github.com/smarr/pharo-vm/commit/114f5b3db0ff2185ca5eac0d033eb95b99f524cb#diff-b2529d6fc3563268fce5d2024df3143fL79
>
>
>
> > I see this occasionally and don't understand the code well enough to fix
> it.  But it seems a false error.  if you proceed through the inconsistent
> value errors the system keeps on running.  Is there anyone out there who
> understands the BalloonPlugin well enough to fix it?  I've tweaked out some
> of the errors (and not broken anything) but it is not something I
> understand.
>
> Same here, but I actually didn't try to skip them.
>
> Hope some people start using the simulator now and will report back.
>
> Best regards
> Stefan
>
> --
> Stefan Marr
> INRIA Lille - Nord Europe
> http://stefan-marr.de/research/
>
>


-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20140214/600f266d/attachment.htm


More information about the Vm-dev mailing list