[pypy-commit] extradoc extradoc: Move this comment.

arigo noreply at buildbot.pypy.org
Tue Aug 28 00:14:02 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: extradoc
Changeset: r4729:1b92431b0ca1
Date: 2012-08-28 00:13 +0200
http://bitbucket.org/pypy/extradoc/changeset/1b92431b0ca1/

Log:	Move this comment.

diff --git a/talk/stm2012/stmimpl.rst b/talk/stm2012/stmimpl.rst
--- a/talk/stm2012/stmimpl.rst
+++ b/talk/stm2012/stmimpl.rst
@@ -477,6 +477,11 @@
             change h_global False->True
             and h_written True->False
 
+Note that non-written local objects are just shadow copies of existing
+global objects.  For the sequel we just replace them with the original
+global objects again.  This is done by tweaking the local objects'
+header.
+
 
 Committing
 ------------------------------------
@@ -537,10 +542,6 @@
                 spin loop retry     # jump back to the "v = ..." line
             save v into the third item in gcroots, replacing the 0
 
-(Note that for non-written local objects, we skip this locking entirely;
-instead, we turn the object into a "global but outdated" object, keeping
-the same ``h_revision`` but with a different meaning.)
-
 We use CMPXCHG to store the lock.  This is required, because we must not
 conflict with another CPU that would try to write its own lock in the
 same field --- in that case, only one CPU can succeed.


More information about the pypy-commit mailing list