Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Peterson <joshuap@unity3d.com>2019-01-08 15:57:05 +0300
committerJosh Peterson <joshuap@unity3d.com>2019-01-08 15:57:05 +0300
commit67500e3717c18669b059c890ff47ad59ca6801af (patch)
tree177f7073c09f2878b285f3c86bf238c25383e5de
parentcd2c41ba19df1eb52ee1d7c41cc9d27fea053947 (diff)
Avoid setting the incremental flag when incremental is disabled
If incremental GC is disabled, `GC_incremental` is not a variable, but instead is define, so it cannot be set.
-rw-r--r--misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 4662d394..dc2fbe81 100644
--- a/misc.c
+++ b/misc.c
@@ -2591,6 +2591,8 @@ GC_API void GC_CALL GC_disable_incremental(void)
{
LOCK();
GC_gcollect_inner();
+#ifndef GC_DISABLE_INCREMENTAL
GC_incremental = FALSE;
+#endif
UNLOCK();
-} \ No newline at end of file
+}