Small cleanups
authorPaul Khuong <pvk@pvk.ca>
Wed, 6 Jul 2011 06:16:17 +0000 (02:16 -0400)
committerPaul Khuong <pvk@pvk.ca>
Wed, 6 Jul 2011 06:16:17 +0000 (02:16 -0400)
 * Wrap some asserts with with-test in defstruct.impure.lisp

 * Remove two unused variables in remap_free_pages.

 * Fix the allocation region size estimate in sb-sprof.

contrib/sb-sprof/sb-sprof.lisp
src/runtime/gencgc.c
tests/defstruct.impure.lisp

index 5a5b3e7..ab1edf2 100644 (file)
@@ -361,7 +361,7 @@ profiling")
   #-gencgc
   (get-page-size)
   #+gencgc
-  sb-vm:gencgc-alloc-granularity)
+  (max sb-vm:gencgc-alloc-granularity sb-vm:gencgc-card-bytes))
 (declaim (type number *alloc-region-size*))
 
 (defvar *samples* nil)
index c1fc6c8..1868797 100644 (file)
@@ -4314,8 +4314,7 @@ remap_page_range (page_index_t from, page_index_t to)
 static void
 remap_free_pages (page_index_t from, page_index_t to, int forcibly)
 {
-    page_index_t first_page, last_page,
-                 first_aligned_page, last_aligned_page;
+    page_index_t first_page, last_page;
 
     if (forcibly)
         return remap_page_range(from, to);
index 6fc914d..1947bbd 100644 (file)
             *manyraw*)))
   (room)
   (sb-ext:gc))
-(check-manyraws *manyraw*)
+(with-test (:name defstruct-raw-slot-gc)
+  (check-manyraws *manyraw*))
 
 ;;; try a full GC, too
 (sb-ext:gc :full t)
-(check-manyraws *manyraw*)
+(with-test (:name (defstruct-raw-slot-gc :full))
+  (check-manyraws *manyraw*))
 
 ;;; fasl dumper and loader also have special handling of raw slots, so
 ;;; dump all of them into a fasl
 
 ;;; re-read the dumped structures and check them
 (load "tmp-defstruct.manyraw.fasl")
-(check-manyraws (dumped-manyraws))
+(with-test (:name (defstruct-raw-slot load))
+  (check-manyraws (dumped-manyraws)))
 
 \f
 ;;;; miscellaneous old bugs