Armin Rigo avatar Armin Rigo committed 6d0d797

Fixes

Comments (0)

Files changed (3)

pypy/module/__pypy__/interp_atomic.py

 
 def bdecodelist(space, p):
     p = rffi.ptradd(p, 1)
-    w_list = space.newlist()
+    objects_w = []
     while p[0] != 'e':
         w_obj, p = bdecode(space, p)
-        space.call_method(w_list, 'append', w_obj)
-    return (w_list, rffi.ptradd(p, 1))
+        objects_w.append(w_obj)
+    return (space.newlist(objects_w), rffi.ptradd(p, 1))
 
 def bdecodestr(space, p):
     length = 0

pypy/module/__pypy__/test/test_atomic.py

         def int(self, x):
             assert isinstance(x, str)
             return int(x)
-        def newlist(self):
-            return []
-        def call_method(self, w_obj, method, *args):
-            assert method == 'append'
-            w_obj.append(*args)
+        def newlist(self, lst):
+            assert isinstance(lst, list)
+            return lst
 
     space = FakeSpace()
 

rpython/rlib/rstm.py

     "Special-cased below."
 
 def abort_info_pop(count):
-    stmgcintf.StmOperations.abort_info_pop(count)
+    if we_are_translated():
+        stmgcintf.StmOperations.abort_info_pop(count)
 
 def charp_inspect_abort_info():
     return stmgcintf.StmOperations.inspect_abort_info()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.