X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdynamic-extent.impure.lisp;h=3ac193fbaebdc3e10a2a5f04228a9de692967b19;hb=22593170e6f2d5204dd49e876cca93a0e033c02a;hp=ead575739d15f7787bf80b0f8a9e8899662b61d7;hpb=ec2e02db335d1545b3c18233bf440ca4160f780d;p=sbcl.git diff --git a/tests/dynamic-extent.impure.lisp b/tests/dynamic-extent.impure.lisp index ead5757..3ac193f 100644 --- a/tests/dynamic-extent.impure.lisp +++ b/tests/dynamic-extent.impure.lisp @@ -146,6 +146,13 @@ (sb-thread::with-spinlock (*slock*) (true *slock*))) +;;; not really DX, but GETHASH and (SETF GETHASH) should not cons + +(defvar *table* (make-hash-table)) + +(defun test-hash-table () + (setf (gethash 5 *table*) 13) + (gethash 5 *table*)) (defmacro assert-no-consing (form &optional times) `(%assert-no-consing (lambda () ,form) ,times)) @@ -169,6 +176,8 @@ (assert-no-consing (test-let-var-subst2 17)) (assert-no-consing (test-lvar-subst 11)) (assert-no-consing (dx-value-cell 13)) + ;; Not strictly DX.. + (assert-no-consing (test-hash-table)) #+sb-thread (assert-no-consing (test-spinlock)))