<br><br><div class="gmail_quote">On Sat, Dec 25, 2010 at 12:20 PM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.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>
On 25 December 2010 16:56, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi everybody. I hope you are enjoying a wonderful and happy Christmas.<br>
&gt;<br>
&gt; Yesterday something weird happened with my cog vm. This assert was failing:<br>
&gt;<br>
&gt; &quot;newUtcMicrosecondClock &gt;= utcMicrosecondClock 127&quot;<br>
&gt;<br>
&gt; a lot of times...<br>
&gt;<br>
&gt; I checked and this is line 127 of sqUnixHeartbeat.c. I am in a MacOS vm, but it seems that file is used anyway.<br>
&gt;<br>
&gt; Now...I have no idea why this assert was failing, nor its severity. What does it mean? there is something wrong?  where can I take a look?<br>
&gt;<br>
<br>
if microseconds clock counter is 32-bit, then it wraps over time to time.<br>
VM should be aware that this may happen and should take appropriate<br>
measures (like adjusting the wait timeouts etc).<br></blockquote><div><br></div><div>The microsecond clock is 64-bit to avoid precisely the possibility of the clock wrapping within anything other than wildly optimistic predictions of the possible life of Smalltalk.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
&gt; It seems it is not easy to reproduce :(<br>
&gt;<br>
yeah, you should wait another<br>
~ 2^32  / 1000000 seconds<br></blockquote><div><br></div><div>By all means but you won&#39;t see it wrap.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
&gt; Thanks in advance,<br>
&gt;<br>
&gt; Mariano<br>
&gt;<br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
</font></blockquote></div><br>