armload of DEFINE-HASH-CACHE changes
[sbcl.git] / src / code / linkage-table.lisp
index 8d122a9..61e21b5 100644 (file)
@@ -19,8 +19,6 @@
 
 (in-package "SB!IMPL")
 
-(defvar *shared-object-lock*) ; initialized in foreign-load.lisp
-
 (define-alien-routine arch-write-linkage-table-jmp void
   (table-address system-area-pointer)
   (real-address system-area-pointer))
@@ -62,7 +60,7 @@
 ;;; in the linkage table.
 (defun ensure-foreign-symbol-linkage (name datap)
   (/show0 "ensure-foreign-symbol-linkage")
-  (with-locked-hash-table (*linkage-info*)
+  (with-locked-system-table (*linkage-info*)
     (let ((info (or (gethash (cons name datap) *linkage-info*)
                     (link-foreign-symbol name datap))))
       (linkage-info-address info))))