[slime-cvs] CVS update: slime/metering.lisp

Luke Gorrie lgorrie at common-lisp.net
Fri Apr 1 20:16:36 UTC 2005


Update of /project/slime/cvsroot/slime
In directory common-lisp.net:/tmp/cvs-serv15671

Modified Files:
	metering.lisp 
Log Message:
Maybe fixed some openmcl breakage.

Date: Fri Apr  1 22:16:35 2005
Author: lgorrie

Index: slime/metering.lisp
diff -u slime/metering.lisp:1.3 slime/metering.lisp:1.4
--- slime/metering.lisp:1.3	Fri Apr  1 20:24:53 2005
+++ slime/metering.lisp	Fri Apr  1 22:16:35 2005
@@ -441,26 +441,27 @@
 ;;; wants to subtract out the consing during GC, replace the following
 ;;; two lines with the commented out code.
 #+openmcl
-(progn
-  (defmacro get-cons () `(the consing-type (ccl::total-bytes-allocated)))
-  (in-package :ccl)
-  (defvar *bytes-consed-chkpt* 0)
-  (defun reset-consing () (setq *bytes-consed-chkpt* 0))
-  (let ((old-gc (symbol-function 'gc))
-        (ccl:*warn-if-redefine-kernel* nil))
-    (setf (symbol-function 'gc)
-          #'(lambda ()
-              (let ((old-consing (total-bytes-consed)))
-                (prog1
-                    (funcall old-gc)
-                  (incf *bytes-consed-chkpt*
-                        (- old-consing (total-bytes-consed))))))))
-  (defun total-bytes-consed ()
-    "Returns number of conses (8 bytes each)"
-    (ccl::total-bytes-allocated))
-  (in-package "MONITOR")
-  (defun get-cons ()
-    (the consing-type (+ (ccl::total-bytes-consed) ccl::*bytes-consed-chkpt*))))
+(defmacro get-cons () `(the consing-type (ccl::total-bytes-allocated)))
+;; #+openmcl
+;; (progn
+;;   (in-package :ccl)
+;;   (defvar *bytes-consed-chkpt* 0)
+;;   (defun reset-consing () (setq *bytes-consed-chkpt* 0))
+;;   (let ((old-gc (symbol-function 'gc))
+;;         (ccl:*warn-if-redefine-kernel* nil))
+;;     (setf (symbol-function 'gc)
+;;           #'(lambda ()
+;;               (let ((old-consing (total-bytes-consed)))
+;;                 (prog1
+;;                     (funcall old-gc)
+;;                   (incf *bytes-consed-chkpt*
+;;                         (- old-consing (total-bytes-consed))))))))
+;;   (defun total-bytes-consed ()
+;;     "Returns number of conses (8 bytes each)"
+;;     (ccl::total-bytes-allocated))
+;;   (in-package "MONITOR")
+;;   (defun get-cons ()
+;;     (the consing-type (+ (ccl::total-bytes-consed) ccl::*bytes-consed-chkpt*))))
 
 
 #-(or clisp openmcl)




More information about the slime-cvs mailing list