]> granicus.if.org Git - gc/commitdiff
Turn on incremental mode in test_cpp
authorIvan Maidanski <ivmai@mail.ru>
Thu, 24 May 2018 08:05:35 +0000 (11:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 24 May 2018 08:05:35 +0000 (11:05 +0300)
* tests/test_cpp.cc [!NO_INCREMENTAL] (main): Call GC_enable_incremental
after GC_INIT.

tests/test_cpp.cc

index d1146d9bb84a84ba12a99f08461333b086473d70..23910741835d64afb90c6cd930515aa79606a5fe 100644 (file)
@@ -281,6 +281,9 @@ void* Undisguise( GC_word i ) {
                         /* needed due to C++ multiple inheritance used  */
 
     GC_INIT();
+#   ifndef NO_INCREMENTAL
+      GC_enable_incremental();
+#   endif
 
     int i, iters, n;
 #   ifndef DONT_USE_STD_ALLOCATOR