[pypy-commit] extradoc extradoc: Bug fix.

arigo noreply at buildbot.pypy.org
Sun Aug 19 18:27:43 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: extradoc
Changeset: r4711:1094db537ce8
Date: 2012-08-19 18:27 +0200
http://bitbucket.org/pypy/extradoc/changeset/1094db537ce8/

Log:	Bug fix.

	This is all nice but is missing some form of runnable code and an
	actual test suite or formal proof :-/

diff --git a/talk/stm2012/stmimpl.rst b/talk/stm2012/stmimpl.rst
--- a/talk/stm2012/stmimpl.rst
+++ b/talk/stm2012/stmimpl.rst
@@ -250,7 +250,7 @@
 two versions of the write barrier::
 
     def WriteBarrier(P):
-        if not P->h_global:       # fast-path
+        if P->h_written:          # fast-path
             return P
         if P->h_possibly_outdated:
             R = LatestGlobalRevision(P)
@@ -262,7 +262,7 @@
         return W
 
     def WriteBarrierFromReadReady(R):
-        if not R->h_global:       # fast-path
+        if R->h_written:          # fast-path
             return R
         W = Localize(R)
         W->h_written = True


More information about the pypy-commit mailing list