<div dir="ltr">Hi Andreas,<br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 15, 2015 at 12:23 PM, Andreas Wacknitz <span dir="ltr">&lt;<a href="mailto:A.Wacknitz@gmx.de" target="_blank">A.Wacknitz@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Eliot,<br>
    <br>
    as promised I checked what I did and found something I changed:<br>
    <br>
    The file platforms/unix/vm/sqUnixHeartbeat.c has the function void
    ioUpdateVMTimezone().<br>
    It was changed to something similar to what is in Cog&#39;s
    sqUnixITimerHeartbeat.c:<br>
    <br>
            void<br>
            ioUpdateVMTimezone()<br>
            {<br>
                updateMicrosecondClock();<br>
            #ifdef HAVE_TM_GMTOFF<br>
                time_t utctt;<br>
                utctt = (get64(utcMicrosecondClock) -
    MicrosecondsFrom1901To1970)<br>
                    / MicrosecondsPerSecond;<br>
                vmGMTOffset = localtime(&amp;utctt)-&gt;tm_gmtoff *
    MicrosecondsPerSecond;<br>
            #else<br>
            # ifdef HAVE_TIMEZONE<br>
                    extern time_t timezone, altzone;<br>
                    extern int daylight;<br>
                    vmGMTOffset = -1 * (daylight ? altzone : timezone) *
    MicrosecondsPerSecond;<br>
            # else<br>
            # error &quot;cannot determine timezone correction&quot;<br>
            # endif<br>
            #endif<br>
            }<br>
    <br>
    One thing is striking: the call to updateMicrosecondClock() is here
    before the #ifdef HAVE_TM_GMTOFF while<br>
    in sqUnixITimerHeartbeat.c it is after the #ifdef.<br></div></blockquote><div><br></div><div>Ah OK.  Thanks!</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    I don&#39;t know which one is correct (I may have copied it wrongly from
    sqUnixITimerHeartbeat).<br>
    Albeit the one here seems to be correct in my eyes. What do you
    think?<br></div></blockquote><div><br></div><div>I think you&#39;re absolutely right.  I&#39;l make the change.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    (Side note: As far as I remember Solaris does not have tm_gmtoff and
    thus the else part is being executed).<br>
    <br>
    <br>
    Regards<br>
    Andreas<br></div></blockquote><div><br></div><div>thanks, and welcome!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    <div>Am 14.03.15 18:33, schrieb Andreas
      Wacknitz:<br>
    </div>
    <blockquote type="cite">
      
      Hi Eliot,
      <div><br>
        <div>
          <blockquote type="cite">
            <div>Am 11.03.2015 um 23:15 schrieb Eliot Miranda
              &lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;:</div>
            <br>
            <div>
              <div dir="ltr">HI Andreas,
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On Wed, Mar 11, 2015 at 9:55
                    AM, Andreas Wacknitz <span dir="ltr">&lt;<a href="mailto:a.wacknitz@gmx.de" target="_blank">a.wacknitz@gmx.de</a>&gt;</span> wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
                      <div style="word-wrap:break-word">Hi
                        Clement,
                        <div><br>
                          <div>
                            <blockquote type="cite">
                              <div>Am 11.03.2015 um 09:23
                                schrieb Clément Bera &lt;<a href="mailto:bera.clement@gmail.com" target="_blank">bera.clement@gmail.com</a>&gt;:</div>
                              <br>
                              <div>
                                <div dir="ltr">Hello,
                                  <div><br>
                                  </div>
                                  About the FreeBSD VM, Holger Freyther
                                  worked on it so he&#39;s the best person
                                  to answer. I think some people used it
                                  and it was at least partially working.</div>
                              </div>
                            </blockquote>
                            That’s my impression. The VMMaker contains
                            some FreeBSD classes but I have the
                            impression that they are not complete (and
                            probably outdated).</div>
                          <div><br>
                            <blockquote type="cite">
                              <div>
                                <div dir="ltr">
                                  <div><br>
                                  </div>
                                  <div>About your NativeBoost
                                    bug on openSolaris,  need more
                                    information:</div>
                                  <div><br>
                                  </div>
                                  <div>- Can you confirm that
                                    you use an intel processor on your
                                    openSolaris machine ? I assume that
                                    yes but I ask because solaris were
                                    typically running on other
                                    processors. NativeBoost, as of
                                    today, works only with intel
                                    processor.</div>
                                  <div><br>
                                  </div>
                                </div>
                              </div>
                            </blockquote>
                            Yes, my Sun Ultra 24 is an Intel based
                            Workstation (Q9300).</div>
                          <div><br>
                            <blockquote type="cite">
                              <div>
                                <div dir="ltr">
                                  <div>- Do you build the Cog
                                    VM or Stack VM ? I mean PharoVMBuild
                                    or PharoSVMBuild ? I think the
                                    PharoSVMBuild does not include
                                    NativeBoost by default, that may be
                                    your problem. There&#39;s a fix
                                    somewhere...</div>
                                  <div><br>
                                  </div>
                                </div>
                              </div>
                            </blockquote>
                            PharoVM from &quot;branch &#39;master&#39; of <a href="https://github.com/pharo-project/pharo-vm" target="_blank">https://github.com/pharo-project/pharo-vm</a>&quot; (thus
                            Cog VM).</div>
                        </div>
                      </div>
                    </blockquote>
                    <div><br>
                    </div>
                    <div>I would like to fold back any changes
                      into the svn master repository for Cog.   What are
                      the diffs?  (If you have time to send me the diffs
                      that would save me a lot of time).</div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
          I don’t know whether there is much to harvest from what I did.
          As far as I remember most of my work was hacking the generator
          image created by the pharo vm scripts (for my Mac) in order to
          make</div>
        <div>the resulting C code to compile under openindiana. The
          basis for Solaris was already there (and as far as I can see
          it is also in the Squeak VM sources). I only tweaked some
          definitions and includes.</div>
        <div>I will look at my notes tomorrow and will post if I will
          find something relevant.</div>
        <div><br>
        </div>
        <div>I am curios about the future of the PharoVM. The main
          development of the VM seem to happen in the SqueakVM (by you).
          Getting the Spur changes into the PharoVM seem to be a lot of
          work.</div>
      </div>
      <div>Wouldn’t it be better to move back the changes of the PharoVM
        into the SqueakVM and have a united development?</div>
      <div>And what is the status and what are the plans regarding
        Timothy’s (gettimothy) work?</div>
      <div><br>
      </div>
      <div>Regards</div>
      <div>Andreas</div>
      <div><br>
      </div>
    </blockquote>
    <br>
  </div>

<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">best,<div>Eliot</div></div>
</div></div>