Author: Armin Rigo <[email protected]>
Branch:
Changeset: r81524:2b962d433084
Date: 2016-01-02 10:22 +0000
http://bitbucket.org/pypy/pypy/changeset/2b962d433084/
Log: Fix: we need to "acquire/release the GIL" even around
RPython_Startup(), like entrypoint.c does
diff --git a/rpython/rlib/entrypoint.py b/rpython/rlib/entrypoint.py
--- a/rpython/rlib/entrypoint.py
+++ b/rpython/rlib/entrypoint.py
@@ -120,9 +120,6 @@
_nowrapper=True,
random_effects_on_gcobjs=True)
-@entrypoint_lowlevel('main', [], c_name='rpython_startup_code')
+@entrypoint_highlevel('main', [], c_name='rpython_startup_code')
def rpython_startup_code():
- rffi.stackcounter.stacks_counter += 1
- llop.gc_stack_bottom(lltype.Void) # marker for trackgcroot.py
RPython_StartupCode()
- rffi.stackcounter.stacks_counter -= 1
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit