Add initial testing of GC_enable/disable, MALLOC[_ATOMIC]_IGNORE_OFF_PAGE
authorIvan Maidanski <ivmai@mail.ru>
Fri, 23 Nov 2018 11:42:57 +0000 (14:42 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 23 Nov 2018 11:42:57 +0000 (14:42 +0300)
* 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

index bc70399..17ba8a8 100644 (file)
@@ -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