X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fstress-gc.lisp;h=f791ddd64b408771fd88a1c5b50159c00b84660e;hb=079ef9dad558ca07cb8178ef428bf738112174fa;hp=76cd767f26e7b9cd7eafa544c486adb0d1acc9b6;hpb=a530bbe337109d898d5b4a001fc8f1afa3b5dc39;p=sbcl.git diff --git a/tests/stress-gc.lisp b/tests/stress-gc.lisp index 76cd767..f791ddd 100644 --- a/tests/stress-gc.lisp +++ b/tests/stress-gc.lisp @@ -1,5 +1,16 @@ ;;;; a stress test for the garbage collector +;;;; This software is part of the SBCL system. See the README file for +;;;; more information. +;;;; +;;;; While most of SBCL is derived from the CMU CL system, the test +;;;; files (like this one) were written from scratch after the fork +;;;; from CMU CL. +;;;; +;;;; This software is in the public domain and is provided with +;;;; absolutely no warranty. See the COPYING and CREDITS files for +;;;; more information. + ;;;; TO DO: ;;;; * Add conses: ;;;; ** Make REPR-CONS. @@ -25,7 +36,7 @@ result)) (defun stress-gc (n-passes &optional (size 3000)) - (format t "~&beginning STRESS-GC N-PASSES=~D SIZE=~D~%" n-passes size) + (format t "~&beginning STRESS-GC N-PASSES=~W SIZE=~W~%" n-passes size) (let ((generations (make-array (isqrt size) :initial-element nil)) ;; We allocate on the order of MOST-POSITIVE-FIXNUM things ;; before doing a full GC. @@ -58,7 +69,7 @@ (assert-generation i-generation generation-i)) (setf (aref generations i-generation) generation-i)))) - (format t "~&done with STRESS-GC N-PASSES=~D SIZE=~D~%" n-passes size)) + (format t "~&done with STRESS-GC N-PASSES=~W SIZE=~W~%" n-passes size)) (defvar *expected*) (defvar *got*) @@ -73,7 +84,7 @@ ;; wimpy to inspect lexical variables. (let ((*expected* (funcall repr index-within-generation)) (*got* element-of-generation)) - (error "bad element #~D in generation #~D:~% expected ~S~% from ~S,~% got ~S" + (error "bad element #~W in generation #~D:~% expected ~S~% from ~S,~% got ~S" index-within-generation index-of-generation *expected* @@ -236,8 +247,6 @@ #| #'repr-complex-array ;; TO DO: #'repr-funcallable-instance - ;; TO DO: #'repr-byte-code-function - ;; TO DO: #'repr-byte-code-closure |# #'repr-symbol #'repr-base-char