mirror of
https://github.com/encounter/bdwgc.git
synced 2026-03-30 10:57:55 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user