Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r75754:735a3d34474c
Date: 2015-02-07 13:23 +0100
http://bitbucket.org/pypy/pypy/changeset/735a3d34474c/
Log: Don't default to '--shared' with stm: it has a lot of thread-locals,
and reading thread-locals is much slower with --shared
diff --git a/pypy/goal/targetpypystandalone.py
b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -239,7 +239,9 @@
enable_translationmodules(config)
config.translation.suggest(check_str_without_nul=True)
- if sys.platform.startswith('linux'):
+ # Don't default to '--shared' with stm: it has a lot of thread-locals,
+ # and reading thread-locals is much slower with --shared
+ if sys.platform.startswith('linux') and not config.translation.stm:
config.translation.suggest(shared=True)
if config.translation.thread:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit