From 723e0e2c1a3973e990a61fceaa808bb0b7261d6f Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Mon, 13 Apr 2020 15:50:58 -0700 Subject: [PATCH] vm: Allow larger 32bit code heaps. Code heap is artificially restricted on 32bit because PPC only had relative jump instructions of a certain width and we punted on implementing larger jumps. --- vm/code_heap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/code_heap.cpp b/vm/code_heap.cpp index ad507c2e78..77aa7ae287 100644 --- a/vm/code_heap.cpp +++ b/vm/code_heap.cpp @@ -3,7 +3,7 @@ namespace factor { code_heap::code_heap(cell size) { - if (size > ((uint64_t)1 << (sizeof(cell) * 8 - 6))) + if (size > ((uint64_t)1 << (sizeof(cell) * 8 - 5))) fatal_error("Heap too large", size); seg = new segment(align_page(size), true); if (!seg) -- 2.34.1