提交 2cdb8373 编写于 作者: A Andrew Scheidecker 提交者: Matt Witherspoon

Allocate 512MB of address-space instead of 1GB for memory objects on 32-bit....

Allocate 512MB of address-space instead of 1GB for memory objects on 32-bit. This allows the test scripts to have more than one around at a time without exhausting 2GB of user address-space.
上级 36e14209
...@@ -30,8 +30,8 @@ namespace Runtime ...@@ -30,8 +30,8 @@ namespace Runtime
// On a 64-bit runtime, allocate 8GB of address space for the memory. // On a 64-bit runtime, allocate 8GB of address space for the memory.
// This allows eliding bounds checks on memory accesses, since a 32-bit index + 32-bit offset will always be within the reserved address-space. // This allows eliding bounds checks on memory accesses, since a 32-bit index + 32-bit offset will always be within the reserved address-space.
// On a 32-bit runtime, allocate 1GB. // On a 32-bit runtime, allocate 512MB.
const Uptr memoryMaxBytes = HAS_64BIT_ADDRESS_SPACE ? 8ull*1024*1024*1024 : 0x40000000; const Uptr memoryMaxBytes = HAS_64BIT_ADDRESS_SPACE ? 8ull*1024*1024*1024 : 0x20000000;
// On a 64 bit runtime, align the instance memory base to a 4GB boundary, so the lower 32-bits will all be zero. Maybe it will allow better code generation? // On a 64 bit runtime, align the instance memory base to a 4GB boundary, so the lower 32-bits will all be zero. Maybe it will allow better code generation?
// Note that this reserves a full extra 4GB, but only uses (4GB-1 page) for alignment, so there will always be a guard page at the end to // Note that this reserves a full extra 4GB, but only uses (4GB-1 page) for alignment, so there will always be a guard page at the end to
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册