[pypy-commit] pypy ppc-jit-backend-rpythonization: add call_release_gil

hager noreply at buildbot.pypy.org
Tue Feb 7 19:24:37 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend-rpythonization
Changeset: r52201:856baf37a1d4
Date: 2012-02-07 10:23 -0800
http://bitbucket.org/pypy/pypy/changeset/856baf37a1d4/

Log:	add call_release_gil

diff --git a/pypy/jit/backend/ppc/ppcgen/opassembler.py b/pypy/jit/backend/ppc/ppcgen/opassembler.py
--- a/pypy/jit/backend/ppc/ppcgen/opassembler.py
+++ b/pypy/jit/backend/ppc/ppcgen/opassembler.py
@@ -1088,6 +1088,15 @@
 
     emit_guard_call_release_gil = emit_guard_call_may_force
 
+    def call_release_gil(self, gcrootmap, save_registers):
+        # XXX don't know whether this is correct
+        # XXX use save_registers here
+        assert gcrootmap.is_shadow_stack
+        with Saved_Volatiles(self.mc):
+            self._emit_call(NO_FORCE_INDEX, self.releasegil_addr, 
+                            [], self._regalloc)
+
+
 
 class OpAssembler(IntOpAssembler, GuardOpAssembler,
                   MiscOpAssembler, FieldOpAssembler,


More information about the pypy-commit mailing list