<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 10, 2017 at 3:13 PM, David T. Lewis <span dir="ltr"><<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><br>
</span>Thanks Bert. It appears to be something related to MethodContext. Since it<br>
is VM related, I initially guessed that it might be something related to<br>
the method cache, but I was able to disable that in the VM and the symptoms<br>
did not change. I'm thinking now that it might be a failure in primitive 61<br>
when trying to copy a MethodContext, this based on the debugger stack<br>
(although I cannot actually display anything useful in the debugger).<br>
<br>
I'll report back if I end up figuring it out, meanwhile any and all historical<br>
clues are appreciated :-)<br></blockquote><div><br></div><div>Ah, slowly all the hacks I had to put in are coming back to me ;)</div><div><br></div><div>Some early images fill the context stack before advancing its stack pointer. I have a flag to allow that, it's pretty certainly used in primitive 61. Normally the VM does not allow access beyond the SP because there is garbage there (stack pops do not nil out the context slot):</div><div><br></div><div><a href="https://github.com/bertfreudenberg/SqueakJS/search?q=allowAccessBeyondSP">https://github.com/bertfreudenberg/SqueakJS/search?q=allowAccessBeyondSP</a><br></div><div><br></div><div>But since the regular VM does not allow it, no image (except the really old ones) ever does it, so I just leave the flag enabled whenever "oldPrims" is in effect ;) Would be better if we could come up with a better way to identify these images.</div><div><br></div><div>- Bert -</div><div> </div></div></div></div>