gcl.git - GNU Common Lisp

index : gcl.git
GNU Common Lisp
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--gcl/o/alloc.c 10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcl/o/alloc.c b/gcl/o/alloc.c
index 6cbb89015..af51c2007 100644
--- a/gcl/o/alloc.c
+++ b/gcl/o/alloc.c
@@ -1485,6 +1485,16 @@ malloc(size_t size) {
RECREATE_HEAP
#endif
;
+#ifdef __MINGW32__
+ /* If malloc() gets called by the C runtime before
+ * main starts and the shared memory is not yet
+ * initialised causing boofo.
+ * SET_REAL_MAXPAGE calls init_shared_memory().
+ * This problem arose with gcc 3.4.2 and new libs.
+ */
+ SET_REAL_MAXPAGE
+ ;
+#endif
}
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月09日 20:39:12 +0000

AltStyle によって変換されたページ (->オリジナル) /