Skip to content

Commit

Permalink
move clearing of *FREE-FUNS* &co to WITH-IR1-NAMESPACE where they're …
Browse files Browse the repository at this point in the history
…bound
  • Loading branch information
nikodemus committed Oct 3, 2012
1 parent 1fd7c4a commit e49315b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 9 additions & 4 deletions src/compiler/macros.lisp
Expand Up @@ -692,10 +692,15 @@
(*free-funs* (make-hash-table :test 'equal)) (*free-funs* (make-hash-table :test 'equal))
(*constants* (make-hash-table :test 'equal)) (*constants* (make-hash-table :test 'equal))
(*source-paths* (make-hash-table :test 'eq))) (*source-paths* (make-hash-table :test 'eq)))
(handler-bind ((compiler-error #'compiler-error-handler) (unwind-protect
(style-warning #'compiler-style-warning-handler) (handler-bind ((compiler-error #'compiler-error-handler)
(warning #'compiler-warning-handler)) (style-warning #'compiler-style-warning-handler)
,@forms))) (warning #'compiler-warning-handler))
,@forms)
(clrhash *free-funs*)
(clrhash *free-vars*)
(clrhash *constants*)
(clrhash *source-paths*))))


;;; Look up NAME in the lexical environment namespace designated by ;;; Look up NAME in the lexical environment namespace designated by
;;; SLOT, returning the <value, T>, or <NIL, NIL> if no entry. The ;;; SLOT, returning the <value, T>, or <NIL, NIL> if no entry. The
Expand Down
6 changes: 0 additions & 6 deletions src/compiler/main.lisp
Expand Up @@ -745,12 +745,6 @@ Examples:
;;; actually in use, so that this function could go away. ;;; actually in use, so that this function could go away.
(defun clear-stuff (&optional (debug-too t)) (defun clear-stuff (&optional (debug-too t))


;; Clear global tables.
(when (boundp '*free-funs*)
(clrhash *free-funs*)
(clrhash *free-vars*)
(clrhash *constants*))

;; Clear debug counters and tables. ;; Clear debug counters and tables.
(clrhash *seen-blocks*) (clrhash *seen-blocks*)
(clrhash *seen-funs*) (clrhash *seen-funs*)
Expand Down

0 comments on commit e49315b

Please sign in to comment.