Author: Armin Rigo <[email protected]>
Branch: c8-new-page-handling
Changeset: r1418:d041ac365425
Date: 2014-09-24 10:00 +0200
http://bitbucket.org/pypy/stmgc/changeset/d041ac365425/
Log: Add comment
diff --git a/c8/stm/core.h b/c8/stm/core.h
--- a/c8/stm/core.h
+++ b/c8/stm/core.h
@@ -109,6 +109,14 @@
#define SLICE_OFFSET(slice) ((slice) >> 16)
#define SLICE_SIZE(slice) ((int)((slice) & 0xFFFF))
+/* The model is: we have a global chained list, from 'commit_log_root',
+ of 'struct stm_commit_log_entry_s' entries. Every one is fully
+ read-only apart from the 'next' field. Every one stands for one
+ commit that occurred. It lists the old objects that were modified
+ in this commit, and their attached "undo logs" --- that is, the
+ data from 'written[n].backup' is the content of (slices of) the
+ object as they were *before* that commit occurred.
+*/
struct stm_commit_log_entry_s {
struct stm_commit_log_entry_s *volatile next;
int segment_num;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit