Home My Page Projects Code Snippets Project Openings SML/NJ Bugs
Summary Activity Tracker Lists

[#65] Garbage collection does not trigger sigGC

Date:
2011-03-02 23:07
Priority:
3
State:
Open
Submitted by:
Bug Submitter (webuser)
Assigned to:
John Reppy (jhr)
Machine Architecture:
x86
Operating System:
MacOS X
Component:
Compiler
Resolution:
None
Severity:
Minor
OS Version:
OS X 10.6.6
SML/NJ Version:
110.72
Keywords:
GC, Signals
URL:
Transcript (of reproduction):
rlwrap sml Standard ML of New Jersey v110.72 [built: Wed Jan 26 00:56:21 2011] - open Signals; [autoloading] [library $SMLNJ-BASIS/basis.cm is stable] [autoloading done] opening Signals eqtype signal datatype sig_action = DEFAULT | HANDLER of signal * int * unit ?.Cont.cont - unit ?.Cont.cont | IGNORE val listSignals : unit - signal list val toString : signal - string val fromString : string - signal option val setHandler : signal * sig_action - sig_action val overrideHandler : signal * sig_action - sig_action val inqHandler : signal - sig_action datatype sigmask = MASK of signal list | MASKALL val maskSignals : sigmask - unit val unmaskSignals : sigmask - unit val masked : unit - sigmask val pause : unit - unit val sigINT : signal val sigALRM : signal val sigTERM : signal val sigGC : signal - setHandler (sigGC, HANDLER (fn (_, _, k) = (print **** GC ****\n; k))); val it = IGNORE : sig_action - SMLofNJ.Internals.GC.doGC 100000; [autoloading] [autoloading done] val it = () : unit
Source (for reproduction):
(* From the REPL *) open Signals; setHandler (sigGC, HANDLER (fn (_, _, k) = (print **** GC ****\n; k))); SMLofNJ.Internals.GC.doGC 100000;
Summary:
Garbage collection does not trigger sigGC

Detailed description
A signal handler set to run when sigGC is triggered does not appear to run when forcing GC.
Submitted via web form by Ivan Tomac ivan.tomac@gmail.com

Comments:

No Comments Have Been Posted

Attached Files:

Changes

Field Old Value Date By
assigned_tonone2011-03-22 13:35jhr