time bug

Matthew Fluet fluet@CS.Cornell.EDU
Tue, 27 Mar 2001 08:28:52 -0500 (EST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-1804928587-985699732=:24526
Content-Type: TEXT/PLAIN; charset=US-ASCII


> > Steve, I'm also curious if you were able to recreate the bug on your
> > system with the mlton-20010321 version and the timeBug{1,2}.sml files.
> 
> I was a bit confused as to which was timeBug1.sml and which was timeBug2.sml.
> Could you please resend them.

Here's bugs.tgz.  

timeBug1 is the original version, with 
  fun times () =
    let
      val {cstime, cutime, elapsed, stime, utime} = Posix.ProcEnv.times ()
    in
      {cstime = cstime,
       cutime = cutime,
       elapsed = elapsed,
       gc = MLton.GC.time (),
       stime = stime,
       utime = utime}
    end

timeBug2 (which shouldn't have any bugs under the changes to the runtime
and basis library) uses
  fun timesPre () =
    let
      val {cstime, cutime, elapsed, stime, utime} = Posix.ProcEnv.times ()
      val gc = MLton.GC.time ()
    in
      {cstime = cstime,
       cutime = cutime,
       elapsed = elapsed,
       gc = gc,
       stime = stime,
       utime = utime}
    end

  fun timesPost () =
    let
      val gc = MLton.GC.time ()
      val {cstime, cutime, elapsed, stime, utime} = Posix.ProcEnv.times ()
    in
      {cstime = cstime,
       cutime = cutime,
       elapsed = elapsed,
       gc = gc,
       stime = stime,
       utime = utime}
    end



---559023410-1804928587-985699732=:24526
Content-Type: APPLICATION/octet-stream; name="bugs.tgz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.3.95.1010327082852.24526B@hoho.cs.cornell.edu>
Content-Description: 

H4sIALOTwDoAA+1WS0/bQBDOlfyKUS5xinHXSexIqeBQVHFpJQ65UVQFxw5WzTqK14gK+O/M7MOx
SaC8UoS63wGz37x3BnbOynnxubVdMDZkoyDAL2OjsPnVaLFRP2S+74fBoIVfhuoQbDkvibIQ0yVA
K8nKWDyi9zf5B8UZ9V+kF/HXcu57xUW2hRjMZywcDh/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