X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcode%2Fgc.lisp;h=776acdd8b37bb3f1e05930d3716384a6374d5fc4;hb=a74b0bdb483504f6faddf8089f848f61ed94b92a;hp=523f347bf147e729f601cfc125f71c16f0c0d911;hpb=550e5afc7ad95ff1e1bbfe932bf8dd81b0c4dce6;p=sbcl.git diff --git a/src/code/gc.lisp b/src/code/gc.lisp index 523f347..776acdd 100644 --- a/src/code/gc.lisp +++ b/src/code/gc.lisp @@ -33,9 +33,9 @@ #!-sb-fluid (declaim (inline dynamic-usage)) ; to reduce PROFILEd call overhead -#!+(or cgc gencgc) +#!+gencgc (def-c-var-frob dynamic-usage "bytes_allocated") -#!-(or cgc gencgc) +#!-gencgc (defun dynamic-usage () (the (unsigned-byte 32) (- (sb!sys:sap-int (sb!c::dynamic-space-free-pointer)) @@ -244,7 +244,7 @@ and submit it as a patch." (finish-output notify-stream)) (defparameter *gc-notify-before* #'default-gc-notify-before #!+sb-doc - "This function bound to this variable is invoked before GC'ing (unless + "The function bound to this variable is invoked before GC'ing (unless *GC-NOTIFY-STREAM* is NIL) with the value of *GC-NOTIFY-STREAM* and current amount of dynamic usage (in bytes). It should notify the user that the system is going to GC.")