]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "Revert "vm: Allow larger 32bit code heaps.""
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 12 Jan 2022 04:49:12 +0000 (22:49 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 12 Jan 2022 04:49:58 +0000 (22:49 -0600)
This reverts commit c6785b71497bbab32999b53ccfaa36fdd6c7a795.

Trying to allow 96MiB codeheaps on 32bit. Can't remember why this didnt
work last time.

vm/code_heap.cpp

index ad507c2e78fb5ee8a4943818ab9fa501ed8a2429..77aa7ae287670a3186fb8489138af68e76561060 100644 (file)
@@ -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)