projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.26.6: use private operations on futexes
[sbcl.git]
/
src
/
compiler
/
sset.lisp
diff --git
a/src/compiler/sset.lisp
b/src/compiler/sset.lisp
index
32cf880
..
c38239b
100644
(file)
--- a/
src/compiler/sset.lisp
+++ b/
src/compiler/sset.lisp
@@
-84,7
+84,8
@@
(let* ((vector (sset-vector set))
(new-vector (make-array (if (zerop (length vector))
2
(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)
(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.
;;; 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.
;;; Destructively add ELEMENT to SET. If ELEMENT was not in the set,
;;; then we return true, otherwise we return false.