X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-sprof%2Fsb-sprof.lisp;h=dd1760c0d5164b8706208db6b6c9dbc73610c6ca;hb=f7a78dd3554bd977b006e5da349a11d4e8463bb5;hp=7d2374edb912b1f4cf5ce7cf040c5ba8ddce2542;hpb=4d23f1a95bcd8b8907db4a9597b41bf394a34c40;p=sbcl.git diff --git a/contrib/sb-sprof/sb-sprof.lisp b/contrib/sb-sprof/sb-sprof.lisp index 7d2374e..dd1760c 100644 --- a/contrib/sb-sprof/sb-sprof.lisp +++ b/contrib/sb-sprof/sb-sprof.lisp @@ -360,10 +360,8 @@ profiling") (defvar *alloc-region-size* #-gencgc (get-page-size) - ;; This hardcoded 2 matches the one in gc_find_freeish_pages. It's not - ;; really worth genesifying. #+gencgc - (* 2 sb-vm:gencgc-page-bytes)) + (max sb-vm:gencgc-alloc-granularity sb-vm:gencgc-card-bytes)) (declaim (type number *alloc-region-size*)) (defvar *samples* nil) @@ -516,7 +514,7 @@ profiling") ;;; This in turn will distribute the notice to those threads we are ;;; interested using SIGPROF. (defun thread-distribution-handler () - (declare (optimize sb-c::merge-tail-calls)) + (declare (optimize speed (space 0))) (when *sampling* #+sb-thread (let ((lock *distribution-lock*))