You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 497 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: David Fox
Version: 3.02
OS: Linux
Submission from: adsl-63-196-84-93.dsl.sndg02.pacbell.net (63.196.84.93)
It seems to me that the following should generate output:
let alarm = Gc.create_alarm (fun () -> print_endline "Hello"; flush stdout)
let _ = Gc.major ()
But I get nothing running 3.02 on a Linux machine.
The text was updated successfully, but these errors were encountered:
let alarm = Gc.create_alarm (fun () -> print_endline "Hello"; flush stdout)
let _ = Gc.major ()
But I get nothing running 3.02 on a Linux machine.
You're right, I made a stupid bug in the implementation of GC alarms.
This is now fixed in the working version and a patch is included in this mail.
You'll have to call Gc.major twice before you start seeing the messages,
though. That's because alarms are based on finalised values, and the
alarm record is not unreachable on the first GC after its allocation.
Original bug ID: 497
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: David Fox
Version: 3.02
OS: Linux
Submission from: adsl-63-196-84-93.dsl.sndg02.pacbell.net (63.196.84.93)
It seems to me that the following should generate output:
let alarm = Gc.create_alarm (fun () -> print_endline "Hello"; flush stdout)
let _ = Gc.major ()
But I get nothing running 3.02 on a Linux machine.
The text was updated successfully, but these errors were encountered: