[pypy-commit] stmgc c7-refactor: In trees, the NULL key is reserved

arigo noreply at buildbot.pypy.org
Tue Feb 25 10:07:56 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: c7-refactor
Changeset: r856:e47cc9d404c2
Date: 2014-02-25 10:07 +0100
http://bitbucket.org/pypy/stmgc/changeset/e47cc9d404c2/

Log:	In trees, the NULL key is reserved

diff --git a/c7/stm/list.c b/c7/stm/list.c
--- a/c7/stm/list.c
+++ b/c7/stm/list.c
@@ -121,6 +121,7 @@
 
 static void tree_insert(struct tree_s *tree, uintptr_t addr, uintptr_t val)
 {
+    assert(addr != 0);    /* the NULL key is reserved */
  retry:;
     wlog_t *wlog;
     uintptr_t key = addr;


More information about the pypy-commit mailing list