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:
authorJoshua Peterson <petersonjm1@gmail.com>2019-01-08 16:07:17 +0300
committerGitHub <noreply@github.com>2019-01-08 16:07:17 +0300
commita02b9c8adc860c1edd2743cc4d1c2d4b593b08fd (patch)
tree177f7073c09f2878b285f3c86bf238c25383e5de
parentcd2c41ba19df1eb52ee1d7c41cc9d27fea053947 (diff)
parent67500e3717c18669b059c890ff47ad59ca6801af (diff)
Merge pull request #33 from Unity-Technologies/dont-set-incremental-when-disabled
Avoid setting the incremental flag when incremental is disabled
-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
+}