image.cpp: don't try to make code heap bigger than p->code_size since on PPC this will cause crashes if the image has a code heap of exactly 32Mb

db4
Slava Pestov 2009-07-31 23:23:29 -05:00
parent 6d296b6504
commit 46688f960d
1 changed files with 2 additions and 4 deletions

View File

@ -53,10 +53,8 @@ cell code_relocation_base;
static void load_code_heap(FILE *file, image_header *h, vm_parameters *p)
{
cell good_size = h->code_size + (1 << 19);
if(good_size > p->code_size)
p->code_size = good_size;
if(h->code_size > p->code_size)
fatal_error("Code heap too small to fit image",h->code_size);
init_code_heap(p->code_size);