Author: Tim Felgentreff <[email protected]>
Branch: 
Changeset: r530:e3f00715c4bd
Date: 2013-12-17 15:54 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/e3f00715c4bd/

Log:    enable stm if on stm branch

diff --git a/targetimageloadingsmalltalk.py b/targetimageloadingsmalltalk.py
--- a/targetimageloadingsmalltalk.py
+++ b/targetimageloadingsmalltalk.py
@@ -161,7 +161,13 @@
 # _____ Define and setup target ___
 
 
-def target(*args):
+def target(driver, *args):
+    # driver.config.translation.gc = "stmgc"
+    # driver.config.translation.gcrootfinder = "stm"
+    from rpython.rlib import rgc
+    if hasattr(rgc, "stm_is_enabled"):
+        driver.config.translation.stm = True
+        driver.config.translation.thread = True
     return entry_point, None
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to