diff options
author | Josh Peterson <joshuap@unity3d.com> | 2019-01-08 15:57:05 +0300 |
---|---|---|
committer | Josh Peterson <joshuap@unity3d.com> | 2019-01-08 15:57:05 +0300 |
commit | 67500e3717c18669b059c890ff47ad59ca6801af (patch) | |
tree | 177f7073c09f2878b285f3c86bf238c25383e5de | |
parent | cd2c41ba19df1eb52ee1d7c41cc9d27fea053947 (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 +} |