]> granicus.if.org Git - gc/commitdiff
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>
Mon, 26 Nov 2018 08:23:10 +0000 (11:23 +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 8ec8c13f275a1ece71e560e02d903bd27d3e21dc..3d70d3d148c181cfe96430c08f1096c37dfbf84a 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