Author: Anton Gulenko <[email protected]>
Branch: storage
Changeset: r911:63016d515218
Date: 2014-07-14 18:44 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/63016d515218/

Log:    Commented out flushCache primitive. We should not need it, since we
        monitor changes to MethodDictionary objects directly. This primitive
        takes too long and prevents running the VM in interpreted mode.

diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -967,7 +967,9 @@
     # MethodDictionaryShadow objects and flush them.
     @expose_primitive(SYMBOL_FLUSH_CACHE, unwrap_spec=[object])
     def func(interp, s_frame, w_rcvr):
-        walk_gc_objects_of_type(shadow.MethodDictionaryShadow, lambda s_dict: 
s_dict.flush_method_cache())
+        # This takes a long time (at least in interpreted mode), and is not 
really necessary.
+        # We are monitoring changes to MethodDictionaries, so there is no need 
for the image to tell us.
+        #walk_gc_objects_of_type(shadow.MethodDictionaryShadow, lambda s_dict: 
s_dict.flush_method_cache())
         return w_rcvr
 
 # ___________________________________________________________________________
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to