Author: Armin Rigo <ar...@tunes.org> Branch: weakref Changeset: r413:de1a136dd7eb Date: 2013-07-18 17:14 +0200 http://bitbucket.org/pypy/stmgc/changeset/de1a136dd7eb/
Log: Comment diff --git a/c4/stmgc.h b/c4/stmgc.h --- a/c4/stmgc.h +++ b/c4/stmgc.h @@ -115,7 +115,9 @@ /* weakref support: allocate a weakref object, and set it to point weakly to 'obj'. The weak pointer offset is hard-coded to be at - 'size - WORD'. Important: stmcb_trace() must NOT trace it. */ + 'size - WORD'. Important: stmcb_trace() must NOT trace it. + Weakrefs are *immutable*! Don't attempt to use stm_write_barrier() + on them. */ gcptr stm_weakref_allocate(size_t size, unsigned long tid, gcptr obj); _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit