<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 26, 2016 at 11:27 AM, David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
That is very good news! The Cuis folks will be happy to hear about this<br>
also, as there has been recent discussion on the Cuis list about how to do<br>
a transition to Spur format.<br></blockquote><div><br></div><div>Alas the tracer is unlikely to work as one needs to add extra methods.  I have been remiss in helping the Cuis folks transition.  I have been distracted with 64-bit work.  The situation right now is that a script that installs the revised Float (SmallFloat64 &amp; BoxedFloat64) hierarchy needs rewriting for Cuis and I haven&#39;t got round to it.  Forgive me.</div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If I recall right, the issue with tracing and resuming on Cog had to do<br>
with resuming in the middle of a method of a jitted method. I don&#39;t think<br>
that I ever positively confirmed that theory, but things worked fine under<br>
an interpreter and it was a trivial step to re-save from Cog.<br></blockquote><div><br></div><div>At least from the image level the difference in e.g. pc in the active context shouldn&#39;t be visible.  If it is then there&#39;s a bug in Cog.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Dave<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; I&#39;ve updated the SystemTracer package to trace a Spur-format image.<br>
&gt;<br>
&gt; This works as far as I can tell, producing a header that looks just like<br>
&gt; the<br>
&gt; header produced by the VM and the objects written also look good. I can<br>
&gt; also<br>
&gt; open the image in RSqueak, but not on Spur. It crashes immediately and<br>
&gt; produces a Smalltalk backtrace that looks like it never manages to return<br>
&gt; from the image-saving method (but the names in the Stack-trace all look<br>
&gt; ok,<br>
&gt; leading me to believe that enough objects got written ok to figure out<br>
&gt; classes, method names, find the right Process to run and so forth).<br>
&gt;<br>
&gt; Curiously, the old SystemTracer2 class that writes Cog-format images also<br>
&gt; produces images that cannot be opened by Cog VMs, only Interpreter VMs. So<br>
&gt; I<br>
&gt; assume there are other assumptions that maybe the JIT makes when starting<br>
&gt; up.<br>
&gt;<br>
&gt; So my question is, what assumptions could there be, and where could I<br>
&gt; start<br>
&gt; looking.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Tim<br>
&gt;<br>
&gt; (If you&#39;re wondering why I&#39;m using the Smalltalk-level tracing at all - in<br>
&gt; our quest to create (with RSqueakVM) a Squeak VM that runs Squeak code<br>
&gt; fast<br>
&gt; enough that we no longer have to rely on C code from plugins or optional<br>
&gt; primitives, we&#39;re trying to see how far we can push this, and e.g. write<br>
&gt; the<br>
&gt; image from within itself, too.)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://forum.world.st/Tracing-a-Spur-Image-from-Smalltalk-tp4881224.html" rel="noreferrer" target="_blank">http://forum.world.st/Tracing-a-Spur-Image-from-Smalltalk-tp4881224.html</a><br>
&gt; Sent from the Squeak VM mailing list archive at Nabble.com.<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>