From 34faf1f78609c0831276bb755629a21727d0b0c8 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Wed, 17 Sep 2008 23:28:54 -0500 Subject: [PATCH] Fix cache polution issue --- basis/bootstrap/image/image.factor | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/basis/bootstrap/image/image.factor b/basis/bootstrap/image/image.factor index 9284728a7a..f18232b7c4 100755 --- a/basis/bootstrap/image/image.factor +++ b/basis/bootstrap/image/image.factor @@ -412,14 +412,14 @@ M: quotation ' all-words [ emit-word ] each ; : emit-global ( -- ) - [ - { - dictionary source-files builtins - update-map implementors-map class<=-cache - class-not-cache classes-intersect-cache class-and-cache - class-or-cache - } [ dup get swap bootstrap-word set ] each - ] H{ } make-assoc + { + dictionary source-files builtins + update-map implementors-map + } [ [ bootstrap-word ] [ get ] bi ] H{ } map>assoc + { + class<=-cache class-not-cache classes-intersect-cache + class-and-cache class-or-cache + } [ H{ } clone ] H{ } map>assoc assoc-union bootstrap-global set bootstrap-global emit-userenv ;