Utility predicates for packing: UNBOUNDED-SC-P and UNBOUNDED-TN-P
[sbcl.git] / src / compiler / sset.lisp
index 32cf880..c38239b 100644 (file)
@@ -84,7 +84,8 @@
   (let* ((vector (sset-vector set))
          (new-vector (make-array (if (zerop (length vector))
                                      2
-                                     (* (length vector) 2)))))
+                                     (* (length vector) 2))
+                                 :initial-element 0)))
     (setf (sset-vector set) new-vector
           (sset-free set) (length new-vector)
           (sset-count set) 0)
@@ -94,7 +95,8 @@
 
 ;;; Rehash the sset when the proportion of free cells in the set is
 ;;; lower than this.
-(defconstant +sset-rehash-threshold+ 1/4)
+(eval-when (:compile-toplevel :load-toplevel :execute)
+  (defconstant +sset-rehash-threshold+ 1/4))
 
 ;;; Destructively add ELEMENT to SET. If ELEMENT was not in the set,
 ;;; then we return true, otherwise we return false.