[pypy-commit] pypy default: an attempt to fix translation without thread
fijal
noreply at buildbot.pypy.org
Tue May 21 20:17:14 CEST 2013
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r64395:47ba0f363929
Date: 2013-05-21 20:15 +0200
http://bitbucket.org/pypy/pypy/changeset/47ba0f363929/
Log: an attempt to fix translation without thread
diff --git a/pypy/goal/targetpypystandalone.py b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -124,12 +124,14 @@
@entrypoint('main', [], c_name='pypy_init_threads')
def pypy_init_threads():
- os_thread.setup_threads(space)
- rffi.aroundstate.before()
+ if space.config.usemodules.thread:
+ os_thread.setup_threads(space)
+ rffi.aroundstate.before()
@entrypoint('main', [], c_name='pypy_thread_attach')
def pypy_thread_attach():
- rthread.gc_thread_start()
+ if space.config.usemodules.thread:
+ rthread.gc_thread_start()
w_globals = space.newdict()
space.setitem(w_globals, space.wrap('__builtins__'),
More information about the pypy-commit
mailing list