Fix staticroots and trace tests for MANUAL_VDB

* tests/staticrootslib.c (mktree): Call GC_end_stubborn_change() at the
end of function if GC_NEW() was called.
* tests/trace_test.c (mktree): Likewise.
This commit is contained in:
Ivan Maidanski
2018-05-23 11:14:44 +03:00
parent 009b09db7a
commit f72fc9d43c
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -39,6 +39,8 @@ static struct treenode *root_nz[10] = { (struct treenode *)(GC_word)2 };
if (r) {
r -> x = libsrl_mktree(i-1);
r -> y = libsrl_mktree(i-1);
if (i != 1)
GC_end_stubborn_change(r);
}
return r;
}
+2
View File
@@ -25,6 +25,8 @@ struct treenode * mktree(int i) {
}
r -> x = mktree(i-1);
r -> y = mktree(i-1);
if (i != 1)
GC_end_stubborn_change(r);
return r;
}