From: Frode Solheim Date: Sun, 20 Sep 2015 09:24:22 +0000 (+0200) Subject: JIT: allow popall creation to fail if cachesize is 0 X-Git-Tag: 3200~58^2^2~1 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=ed86b4c6c1764340ad5092f3d754a0f066eb9dde;p=francis%2Fwinuae.git JIT: allow popall creation to fail if cachesize is 0 --- diff --git a/jit/compemu_support.cpp b/jit/compemu_support.cpp index 984f3a9a..18d58e72 100644 --- a/jit/compemu_support.cpp +++ b/jit/compemu_support.cpp @@ -3710,10 +3710,19 @@ static inline void create_popalls(void) #ifdef UAE if (popallspace == NULL) { #endif - if ((popallspace = alloc_code(POPALLSPACE_SIZE)) == NULL) { - jit_abort("Could not allocate popallspace!"); - } + if ((popallspace = alloc_code(POPALLSPACE_SIZE)) == NULL) { +#ifdef UAE + jit_log("WARNING: Could not allocate popallspace!"); + if (currprefs.cachesize > 0) { +#endif + jit_abort("Could not allocate popallspace!"); #ifdef UAE + } + /* This is not fatal if JIT is not used. If JIT is + * turned on, it will crash, but it would have crashed + * anyway. */ + return; + } } #endif vm_protect(popallspace, POPALLSPACE_SIZE, VM_PAGE_READ | VM_PAGE_WRITE);