]> granicus.if.org Git - python/commitdiff
read eval_breaker with atomic api with computed gotos
authorBenjamin Peterson <benjamin@python.org>
Mon, 3 May 2010 21:09:59 +0000 (21:09 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 3 May 2010 21:09:59 +0000 (21:09 +0000)
Python/ceval.c

index 09f939ea8e57b8ba22f4f09fc31a8db04b45797b..3bd0ce62ace7a04fb87fc1d0e09c4fc4e348ef67 100644 (file)
@@ -868,7 +868,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
 
 #define DISPATCH() \
        { \
-               if (!eval_breaker) { \
+            if (!_Py_atomic_load_relaxed(&eval_breaker)) {      \
                        FAST_DISPATCH(); \
                } \
                continue; \