[pypy-commit] stmgc c8-private-pages: fix for trying to free -1
Raemi
noreply at buildbot.pypy.org
Mon Jan 19 11:06:59 CET 2015
Author: Remi Meier <remi.meier at inf.ethz.ch>
Branch: c8-private-pages
Changeset: r1544:a9ebb62368a6
Date: 2015-01-19 11:07 +0100
http://bitbucket.org/pypy/stmgc/changeset/a9ebb62368a6/
Log: fix for trying to free -1
diff --git a/c8/stm/core.c b/c8/stm/core.c
--- a/c8/stm/core.c
+++ b/c8/stm/core.c
@@ -414,7 +414,8 @@
while (1) {
if (!_stm_validate()) {
- free(new);
+ if (new != INEV_RUNNING)
+ free(new);
stm_abort_transaction();
}
More information about the pypy-commit
mailing list