]> granicus.if.org Git - gc/commitdiff
Turn on incremental mode in cordtest cord/de and staticroots test
authorIvan Maidanski <ivmai@mail.ru>
Wed, 23 May 2018 08:05:29 +0000 (11:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 23 May 2018 08:05:29 +0000 (11:05 +0300)
* cord/tests/cordtest.c [!NO_INCREMENTAL] (main): Call
GC_enable_incremental() after GC_INIT.
* cord/tests/de.c [!NO_INCREMENTAL] (main): Likewise.
* cord/tests/de_win.c [!NO_INCREMENTAL] (WinMain): Likewise.
* tests/staticrootslib.c [!NO_INCREMENTAL] (main): Likewise.

cord/tests/cordtest.c
cord/tests/de.c
cord/tests/de_win.c
tests/staticrootslib.c

index 8de6980fa4288d1961d01d9882542f8442ba352a..c3ad01f42f75bed59ca5acde2bfde4e21bb2e064 100644 (file)
@@ -308,6 +308,9 @@ int main(void)
         printf("cordtest:\n");
 #   endif
     GC_INIT();
+#   ifndef NO_INCREMENTAL
+      GC_enable_incremental();
+#   endif
     test_basics();
     test_extras();
     test_printf();
index 321296c581f0fc9ca505bcb218f8fad40842ffce..9d74ae644426dd0865cb66cee18c424c8066f49f 100644 (file)
@@ -583,6 +583,9 @@ int main(int argc, char **argv)
         argc = ccommand(&argv);
 #   endif
     GC_INIT();
+#   ifndef NO_INCREMENTAL
+      GC_enable_incremental();
+#   endif
 
     if (argc != 2) {
         fprintf(stderr, "Usage: %s file\n", argv[0]);
index 24f0a6e2cb54c884f11f371cf7d827d7e391726c..2715c413aa8086c1fa0f6a9c00bf476e6e66512c 100644 (file)
@@ -47,6 +47,9 @@ int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
    HACCEL      hAccel;
 
    GC_INIT();
+#  ifndef NO_INCREMENTAL
+     GC_enable_incremental();
+#  endif
 #  if defined(CPPCHECK)
      GC_noop1((GC_word)&WinMain);
 #  endif
index f5725c6e05669299be410da26029377002c4cad9..9ba6d353dde67735f8cc5fe1919b7f381a53b19b 100644 (file)
@@ -47,6 +47,9 @@ static struct treenode *root_nz[10] = { (struct treenode *)(GC_word)2 };
   {
 #   ifndef STATICROOTSLIB_INIT_IN_MAIN
       GC_INIT();
+#   endif
+#   ifndef NO_INCREMENTAL
+      GC_enable_incremental();
 #   endif
     return GC_MALLOC(sizeof(struct treenode));
   }