X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fgc.lisp;h=866565d6778e322e1e21af8591b757700828eec6;hb=28d9bb7a509695caaf78d647b6aa1b0f02c0e83a;hp=d3bcd13698036b3991f90eb6308a705779855dfd;hpb=6139c89c89f45c03509e4f3156293ff656716a8c;p=sbcl.git diff --git a/src/code/gc.lisp b/src/code/gc.lisp index d3bcd13..866565d 100644 --- a/src/code/gc.lisp +++ b/src/code/gc.lisp @@ -140,7 +140,14 @@ and submit it as a patch." ;;; ;;; Unlike CMU CL, we don't export this variable. (There's no need to, ;;; since our BYTES-CONSED-BETWEEN-GCS function is SETFable.) -(defvar *bytes-consed-between-gcs* (* 4 (expt 10 6))) +(defvar *bytes-consed-between-gcs* + #+gencgc (* 4 (expt 10 6)) + ;; Stop-and-copy GC is really really slow when used too often. CSR + ;; reported that even on his old 64 Mb SPARC, 20 Mb is much faster + ;; than 4 Mb when rebuilding SBCL ca. 0.7.1. For modern machines + ;; with >> 128 Mb memory, the optimum could be significantly more + ;; than this, but at least 20 Mb should be better than 4 Mb. + #-gencgc (* 20 (expt 10 6))) (declaim (type index *bytes-consed-between-gcs*)) ;;;; GC hooks