From 8fc1ebf6dda3d5338476fe300c7ecd5e8e032a5a Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 23 Nov 2018 14:42:57 +0300 Subject: [PATCH] Add initial testing of GC_enable/disable, MALLOC[_ATOMIC]_IGNORE_OFF_PAGE * tests/test.c (run_one_test): Call GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE(), GC_disable(), GC_MALLOC_IGNORE_OFF_PAGE(), GC_enable(). --- tests/test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test.c b/tests/test.c index bc70399b..17ba8a82 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1463,6 +1463,10 @@ void run_one_test(void) GC_FREE(GC_MALLOC_ATOMIC(0)); test_generic_malloc_or_special(GC_malloc_atomic(1)); AO_fetch_and_add1(&atomic_count); + GC_FREE(GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE(1)); + GC_disable(); + GC_FREE(GC_MALLOC_IGNORE_OFF_PAGE(2)); + GC_enable(); } } # ifdef GC_GCJ_SUPPORT -- 2.40.0