[pypy-commit] pypy stm-gc: Move the comment.
arigo
noreply at buildbot.pypy.org
Tue Feb 7 13:58:31 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r52175:e44e73b43895
Date: 2012-02-07 13:35 +0100
http://bitbucket.org/pypy/pypy/changeset/e44e73b43895/
Log: Move the comment.
diff --git a/pypy/rpython/memory/gc/stmgc.py b/pypy/rpython/memory/gc/stmgc.py
--- a/pypy/rpython/memory/gc/stmgc.py
+++ b/pypy/rpython/memory/gc/stmgc.py
@@ -221,9 +221,8 @@
@always_inline
def reader(obj, offset):
if self.header(obj).tid & GCFLAG_GLOBAL == 0:
- # local obj: read directly
adr = rffi.cast(PTYPE, obj + offset)
- return adr[0]
+ return adr[0] # local obj: read directly
else:
return stm_read_int(obj, offset) # else: call a helper
setattr(self, 'read_int%d' % size, reader)
More information about the pypy-commit
mailing list