diff options
author | John van Groningen | 2005-11-09 11:17:49 +0000 |
---|---|---|
committer | John van Groningen | 2005-11-09 11:17:49 +0000 |
commit | a63cc95f3c02f32bb7ca919ddb8afbf7c3e973f0 (patch) | |
tree | 17f78cab0937db6adb0f3476ec9c49352ba71af8 /istartup.s | |
parent | add code for apply with >=2 arguments to yet_args_neededed code (diff) |
prevent out of memory error for large heaps caused by integer overflow in test
Diffstat (limited to 'istartup.s')
-rw-r--r-- | istartup.s | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -2327,7 +2327,7 @@ no_pages: jne no_small_heap1 cmpl $(MINIMUM_HEAP_SIZE_2),d0 - jge not_too_small1 + jae not_too_small1 movl $(MINIMUM_HEAP_SIZE_2),d0 not_too_small1: subl d0,d1 @@ -2711,12 +2711,15 @@ no_mark5: subl n_allocated_words,d1 jc out_of_memory_4 + cmpl $107374182,d1 + jae not_out_of_memory movl d1,d0 shl $2,d0 addl d1,d0 shl $3,d0 cmpl @heap_size,d0 jc out_of_memory_4 +not_out_of_memory: #if defined (MARK_GC) || defined (COMPACT_GC_ONLY) # if defined (MARK_GC) && defined (ADJUST_HEAP_SIZE) @@ -5434,4 +5437,6 @@ r_to_i_real: ret #endif -#include "iap.s" +#ifdef NEW_DESCRIPTORS +# include "iap.s" +#endif |