<br><br><div class="gmail_quote">On Sat, Dec 25, 2010 at 12:20 PM, Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>></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 <<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>> wrote:<br>
><br>
> Hi everybody. I hope you are enjoying a wonderful and happy Christmas.<br>
><br>
> Yesterday something weird happened with my cog vm. This assert was failing:<br>
><br>
> "newUtcMicrosecondClock >= utcMicrosecondClock 127"<br>
><br>
> a lot of times...<br>
><br>
> 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>
><br>
> 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>
><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>
> It seems it is not easy to reproduce :(<br>
><br>
yeah, you should wait another<br>
~ 2^32 / 1000000 seconds<br></blockquote><div><br></div><div>By all means but you won'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>
> Thanks in advance,<br>
><br>
> Mariano<br>
><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
</font></blockquote></div><br>