Merge pull request #5428 from kumpera/wasm-support-p2
[mono.git] / mono / sgen / sgen-marksweep.c
index 5f4185d4df70ec4f48a692aae3edfc46cfd3396b..e06ac6d3f83f22177fa54f48f5dc96fa23870e98 100644 (file)
@@ -189,10 +189,15 @@ enum {
        SWEEP_STATE_COMPACTING
 };
 
+typedef enum {
+       SGEN_SWEEP_SERIAL = FALSE,
+       SGEN_SWEEP_CONCURRENT = TRUE,
+} SgenSweepMode;
+
 static volatile int sweep_state = SWEEP_STATE_SWEPT;
 
 static gboolean concurrent_mark;
-static gboolean concurrent_sweep = TRUE;
+static gboolean concurrent_sweep = DEFAULT_SWEEP_MODE;
 
 int sweep_pool_context = -1;