X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fgc.lisp;h=6dbc4f83090e62eb5bce3c8455163ec6ed14f9ed;hb=0dda5090b6c16a641000b4eb2dcd479f39b784ca;hp=e1ebb739d845637deeafff84868c9aaaf6a1eea0;hpb=b43491a8a0411a13535558aa1b975ae082acc1f7;p=sbcl.git diff --git a/src/code/gc.lisp b/src/code/gc.lisp index e1ebb73..6dbc4f8 100644 --- a/src/code/gc.lisp +++ b/src/code/gc.lisp @@ -157,10 +157,6 @@ run in any thread.") (progn (sb!alien:define-alien-variable ("gc_logfile" %gc-logfile) (* char)) (defun (setf gc-logfile) (pathname) - "Use PATHNAME to log garbage collections. If non-null, the -designated file is opened before and after each collection, and -generation statistics are appended to it. To stop writing the log, use -NIL as the pathname." (let ((new (when pathname (sb!alien:make-alien-string (native-namestring (translate-logical-pathname pathname) @@ -170,7 +166,11 @@ NIL as the pathname." (when old (sb!alien:free-alien old)))) (defun gc-logfile () - "Return the name of the current GC logfile." + #!+sb-doc + "Return the pathname used to log garbage collections. Can be SETF. +Default is NIL, meaning collections are not logged. If non-null, the +designated file is opened before and after each collection, and generation +statistics are appended to it." (let ((val %gc-logfile)) (when val (native-pathname (cast val c-string))))) @@ -435,8 +435,8 @@ Experimental: interface subject to change." t) (def number-of-gcs-before-promotion "Number of times garbage collection is done on GENERATION before -automatic promotion to the next generation is triggered. Can be assigned to -using SETF. Available on GENCGC platforms only. +automatic promotion to the next generation is triggered. Default is 1. Can be +assigned to using SETF. Available on GENCGC platforms only. Experimental: interface subject to change." t)