dotnet7.0/SOURCES/runtime-77682-mono-cgruop-min-memory.patch
2022-11-08 19:39:28 +00:00

23 lines
790 B
Diff

From f78e8c273d342cbaf691c23d7cd45d2e5ebbc56d Mon Sep 17 00:00:00 2001
From: Neale Ferguson <neale@sinenomine.net>
Date: Mon, 31 Oct 2022 15:06:04 +0000
Subject: [PATCH] Correct minimum memory size value from 200MB to 20MB
---
src/mono/mono/utils/memfuncs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/runtime/src/mono/mono/utils/memfuncs.c b/src/runtime/src/mono/mono/utils/memfuncs.c
index 885c21ae3d8fb..a38dcec17b1b6 100644
--- a/src/runtime/src/mono/mono/utils/memfuncs.c
+++ b/src/runtime/src/mono/mono/utils/memfuncs.c
@@ -70,7 +70,7 @@
__d [__i] = NULL; \
} while (0)
-#define MINMEMSZ 209715200 /* Minimum restricted memory size */
+#define MINMEMSZ 20971520 /* Minimum restricted memory size - 20MB */
/**
* mono_gc_bzero_aligned: