[slime-devel] swank-cmucl.lisp remove-gc-hooks

Madhu enometh at meer.net
Sun Dec 10 13:17:42 UTC 2006


The variables EXT:*GC-NOTIFY-AFTER* and EXT:*NOTIFY-BEFORE* should
hold functions and should be NIL. This affects the function
REMOVE-GC-HOOKS in swank-cmucl.lisp which sets them to NIL, (should
one happen to use it). I believe the following Changelog entry applies:

| 2004-12-05  Helmut Eller  <heller at common-lisp.net>

Appended is a fix which sets them back to the original parameters.

Index: swank-cmucl.lisp
===================================================================
RCS file: /project/slime/cvsroot/slime/swank-cmucl.lisp,v retrieving
revision 1.168 diff -u -r1.168 swank-cmucl.lisp --- swank-cmucl.lisp
23 Nov 2006 23:13:27 -0000 1.168
+++ swank-cmucl.lisp	10 Dec 2006 12:59:37 -0000
@@ -2178,8 +2178,8 @@
   (setq ext:*gc-notify-after* #'post-gc-hook))
 
 (defun remove-gc-hooks ()
-  (setq ext:*gc-notify-before* nil)
-  (setq ext:*gc-notify-after* nil))
+  (setq ext:*gc-notify-before* #'LISP::DEFAULT-GC-NOTIFY-BEFORE)
+  (setq ext:*gc-notify-after* #'LISP::DEFAULT-GC-NOTIFY-AFTER))
 
 (defvar *install-gc-hooks* t
   "If non-nil install GC hooks")




More information about the slime-devel mailing list