Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 9b0cf9e

Browse files
author
Hans-Kristian Arntzen
committed
Bump VA allocation to 1GB, just to be safe.
1 parent 833177a commit 9b0cf9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jit_allocator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ namespace JIT
1616
static constexpr bool huge_va = std::numeric_limits<size_t>::max() > 0x100000000ull;
1717
// On 64-bit systems, we will never allocate more than one block, this is important since we must ensure that
1818
// relative jumps are reachable in 32-bits.
19-
static constexpr size_t block_size = huge_va ? (256 * 1024 * 1024) : (2 * 1024 * 1024);
19+
// We won't actually allocate 1 GB on 64-bit, but just reserve VA space for it, which we have basically an infinite amount of.
20+
static constexpr size_t block_size = huge_va ? (1024 * 1024 * 1024) : (2 * 1024 * 1024);
2021
Allocator::~Allocator()
2122
{
2223
#ifdef _WIN32

0 commit comments

Comments
 (0)