Skip to content

Commit

Permalink
vm: Allow larger 32bit code heaps.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
erg committed Apr 13, 2020
1 parent 5d818cc commit 723e0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/code_heap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 723e0e2

Please sign in to comment.