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.master
							parent
							
								
									5d818ccc71
								
							
						
					
					
						commit
						723e0e2c1a
					
				| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue