Make heap init work on 64-bit

Larger pointer sizes means the normal heap limits don't work.

Expand them even when on 32-bit because we're already allocating 256 MB
of MEM1 anyways
This commit is contained in:
PJB3005
2026-02-24 15:14:46 +01:00
parent bc8d5a2dce
commit 818b190bb5
+13
View File
@@ -831,6 +831,19 @@ int mDoMch_Create() {
arenaSize -= 0x6C00;
arenaSize -= 0xC800;
#endif
#if TARGET_PC
// Change heap sizes to account for 64bit pointers & extra memory available.
arenaSize = 32 * 1024 * 1024;
commandHeapSize *= 2;
#if DEBUG
dynamicLinkHeapSize *= 2;
#endif
archiveHeapSize *= 2;
j2dHeapSize *= 2;
gameHeapSize *= 2;
#endif
JFWSystem::setSysHeapSize(arenaSize);
my_PrintHeap("システムヒープ", arenaSize);