From: Ivan Maidanski Date: Wed, 23 May 2018 08:14:44 +0000 (+0300) Subject: Fix staticroots and trace tests for MANUAL_VDB X-Git-Tag: v8.0.0~170 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f72fc9d43c1659224e0986a6a8fa3d0349eedd14;p=gc 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. --- diff --git a/tests/staticrootslib.c b/tests/staticrootslib.c index 9ba6d353..a445a095 100644 --- a/tests/staticrootslib.c +++ b/tests/staticrootslib.c @@ -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; } diff --git a/tests/trace_test.c b/tests/trace_test.c index d5af8917..1bcf07bb 100644 --- a/tests/trace_test.c +++ b/tests/trace_test.c @@ -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; }