[pypy-commit] extradoc extradoc: Fix: must be an odd value

arigo noreply at buildbot.pypy.org
Sun Aug 19 10:13:01 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: extradoc
Changeset: r4705:fde4ddd2f9a0
Date: 2012-08-19 10:12 +0200
http://bitbucket.org/pypy/extradoc/changeset/fde4ddd2f9a0/

Log:	Fix: must be an odd value

diff --git a/talk/stm2012/stmimpl.rst b/talk/stm2012/stmimpl.rst
--- a/talk/stm2012/stmimpl.rst
+++ b/talk/stm2012/stmimpl.rst
@@ -72,7 +72,7 @@
 - ``h_written`` is set on local objects that have been written to.
 
 - ``h_revision`` on local objects points to the global object that they
-  come from, if any; otherwise it is NULL.
+  come from, if any; otherwise it is 1.
 
 - ``h_revision`` on global objects depends on whether the object is the
   head of the chained list of revisions or not.  If it is, then
@@ -157,7 +157,7 @@
 
 - All barriers ensure that ``global_to_local`` satisfies the following
   property for any local object ``L``: either ``L`` was created by
-  this transaction (``L->h_revision == 0``) or else satisfies
+  this transaction (``L->h_revision == 1``) or else satisfies
   ``global_to_local[L->h_revision] == L``.
 
 
@@ -171,7 +171,7 @@
         W->h_global = False
         W->h_possibly_outdated = False
         W->h_written = True
-        W->h_revision = 0
+        W->h_revision = 1
         return W
 
 


More information about the pypy-commit mailing list