[pypy-commit] stmgc default: More comments
arigo
noreply at buildbot.pypy.org
Thu Nov 5 08:39:48 EST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1965:712690ddffd5
Date: 2015-11-05 14:40 +0100
http://bitbucket.org/pypy/stmgc/changeset/712690ddffd5/
Log: More comments
diff --git a/c8/stmgc.h b/c8/stmgc.h
--- a/c8/stmgc.h
+++ b/c8/stmgc.h
@@ -767,11 +767,13 @@
object_t *object;
};
-/* Hashtable iterators. You get a raw 'table' pointer when you make an
- iterator, which you pass to stm_hashtable_iter_next(). When the GC
- traces, you must keep the table pointer alive with
- stm_hashtable_iter_tracefn(). This may or may not return items added
- after stm_hashtable_iter() was called. */
+/* Hashtable iterators. You get a raw 'table' pointer when you make
+ an iterator, which you pass to stm_hashtable_iter_next(). This may
+ or may not return items added after stm_hashtable_iter() was
+ called; there is no logic so far to detect changes (unlike Python's
+ RuntimeError). When the GC traces, you must keep the table pointer
+ alive with stm_hashtable_iter_tracefn(). The original hashtable
+ object must also be kept alive. */
struct stm_hashtable_table_s *stm_hashtable_iter(stm_hashtable_t *);
stm_hashtable_entry_t **
stm_hashtable_iter_next(object_t *hobj, struct stm_hashtable_table_s *table,
More information about the pypy-commit
mailing list