Author: Alexander Hesse <[email protected]>
Branch: split-rpython
Changeset: r60043:46a50dcc27f1
Date: 2013-01-13 21:32 +0100
http://bitbucket.org/pypy/pypy/changeset/46a50dcc27f1/

Log:    Fix

diff --git a/rpython/jit/backend/x86/assembler.py 
b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -8,6 +8,7 @@
 from rpython.rtyper.lltypesystem.lloperation import llop
 from rpython.rtyper.annlowlevel import llhelper
 from rpython.rlib.jit import AsmInfo
+from rpython.rlib import longlong2float
 from rpython.jit.backend.model import CompiledLoopToken
 from rpython.jit.backend.x86.regalloc import (RegAlloc, get_ebp_ofs, 
_get_scale,
     gpr_reg_mgr_cls, xmm_reg_mgr_cls, _valid_addressing_size)
diff --git a/rpython/rlib/rthread.py b/rpython/rlib/rthread.py
--- a/rpython/rlib/rthread.py
+++ b/rpython/rlib/rthread.py
@@ -196,6 +196,7 @@
 # Thread integration.
 # These are six completely ad-hoc operations at the moment.
 
[email protected]_look_inside
 def gc_thread_prepare():
     """To call just before thread.start_new_thread().  This
     allocates a new shadow stack to be used by the future
@@ -206,6 +207,7 @@
     if we_are_translated():
         llop.gc_thread_prepare(lltype.Void)
 
[email protected]_look_inside
 def gc_thread_run():
     """To call whenever the current thread (re-)acquired the GIL.
     """
@@ -213,12 +215,14 @@
         llop.gc_thread_run(lltype.Void)
 gc_thread_run._always_inline_ = True
 
[email protected]_look_inside
 def gc_thread_start():
     """To call at the beginning of a new thread.
     """
     if we_are_translated():
         llop.gc_thread_start(lltype.Void)
 
[email protected]_look_inside
 def gc_thread_die():
     """To call just before the final GIL release done by a dying
     thread.  After a thread_die(), no more gc operation should
@@ -228,6 +232,7 @@
         llop.gc_thread_die(lltype.Void)
 gc_thread_die._always_inline_ = True
 
[email protected]_look_inside
 def gc_thread_before_fork():
     """To call just before fork().  Prepares for forking, after
     which only the current thread will be alive.
@@ -237,6 +242,7 @@
     else:
         return llmemory.NULL
 
[email protected]_look_inside
 def gc_thread_after_fork(result_of_fork, opaqueaddr):
     """To call just after fork().
     """
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to