From 3e886de065ceba31494aaf5665942c8610a2100e Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 10 Jul 2018 08:58:08 +0300 Subject: [PATCH] Fix missing dirty and reachable_here calls in typed_test (fix of commits b52c140d3, 263ffbbfd, 2e7daad62) * tests/test.c [!NO_TYPED_TEST] (typed_test): Call GC_PTR_STORE_AND_DIRTY to store old value to newP[1]. --- tests/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.c b/tests/test.c index bda3834..733926e 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1191,7 +1191,7 @@ void typed_test(void) FAIL; } newP[0] = 17; - newP[1] = (GC_word)old; + GC_PTR_STORE_AND_DIRTY(newP + 1, old); old = newP; AO_fetch_and_add1(&collectable_count); newP = (GC_word *)GC_malloc_explicitly_typed(4 * sizeof(GC_word), d2); -- 2.7.4