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:
authorJonas Echterhoff <jonas@unity3d.com>2018-12-03 15:48:53 +0300
committerJonas Echterhoff <jonas@unity3d.com>2018-12-03 15:48:53 +0300
commite4242602b81f65b25577a05fc8951557efc3cde3 (patch)
treea5b91d8c80eb43aba4c4447317aa8c832f0619de
parent400175123a1439a9f5c7f35ecc868cc74f6259df (diff)
Switch back to LARGE_CONFIGuse-large-config
-rw-r--r--include/private/gcconfig.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index 84bc3f0f..7982ce39 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -3597,4 +3597,12 @@ EXTERN_C_BEGIN
EXTERN_C_END
+#ifndef SMALL_CONFIG
+/* We were running out of memory due to the fact that
+ * GC has a static sized array for heap segments, and without
+ * LARGE_CONFIG you go OOM at around 1.8 GB on 64-bit.
+ * Note, we define it everywhere on Mono. */
+#define LARGE_CONFIG
+#endif
+
#endif /* GCCONFIG_H */