Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r69885:c8bec5976825
Date: 2014-03-11 19:13 +0100
http://bitbucket.org/pypy/pypy/changeset/c8bec5976825/

Log:    Reduce; add an XXX for the non-implemented weakrefs

diff --git a/rpython/memory/gctransform/stmframework.py 
b/rpython/memory/gctransform/stmframework.py
--- a/rpython/memory/gctransform/stmframework.py
+++ b/rpython/memory/gctransform/stmframework.py
@@ -72,6 +72,7 @@
         hop.genop("stm_get_root_stack_top", [], resultvar=hop.spaceop.result)
 
     def gct_weakref_create(self, hop):
+        XXX
         op = hop.spaceop
         
         type_id = self.get_type_id(WEAKREF)
@@ -104,21 +105,17 @@
                               resulttype=llmemory.WeakRefPtr)
         hop.cast_result(v_weakref)
 
-        
-    def _gct_with_roots_pushed(self, hop):
-        livevars = self.push_roots(hop)
-        self.default(hop)
-        self.pop_roots(hop, livevars)
+##    def _gct_with_roots_pushed(self, hop):
+##        livevars = self.push_roots(hop)
+##        self.default(hop)
+##        self.pop_roots(hop, livevars)
 
-    # sync with lloperation.py
-    gct_stm_become_inevitable                       = _gct_with_roots_pushed
-    gct_stm_set_transaction_length                  = _gct_with_roots_pushed
-    gct_stm_stop_all_other_threads                  = _gct_with_roots_pushed
-    gct_stm_partial_commit_and_resume_other_threads = _gct_with_roots_pushed
-    gct_stm_perform_transaction                     = _gct_with_roots_pushed
-    gct_stm_allocate_nonmovable_int_adr             = _gct_with_roots_pushed
-    gct_stm_inspect_abort_info                      = _gct_with_roots_pushed
-    gct_stm_threadlocalref_set                      = _gct_with_roots_pushed
+##    # sync with lloperation.py
+##    gct_stm_become_inevitable                       = _gct_with_roots_pushed
+##    gct_stm_partial_commit_and_resume_other_threads = _gct_with_roots_pushed
+##    gct_stm_perform_transaction                     = _gct_with_roots_pushed
+##    gct_stm_inspect_abort_info                      = _gct_with_roots_pushed
+##    gct_stm_threadlocalref_set                      = _gct_with_roots_pushed
 
 
 class StmRootWalker(BaseRootWalker):
diff --git a/rpython/translator/stm/jitdriver.py 
b/rpython/translator/stm/jitdriver.py
--- a/rpython/translator/stm/jitdriver.py
+++ b/rpython/translator/stm/jitdriver.py
@@ -148,6 +148,7 @@
     def make_invoke_stm_function(self):
         CONTAINER = self.CONTAINER
         callback = self.callback_function
+        XXX
         perform_transaction = rstm.make_perform_transaction(callback,
                                                             self.CONTAINERP)
         irange = range(len(self.TYPES))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to