From d01aec1b32baa0f16837a8c22dd1e694ac2d1e98 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sat, 12 Dec 2015 14:11:17 -0700 Subject: [PATCH] JIT: always use buffer padding of 200 The main intent of this change is to raise the buffer size for ARM, but that would leave only 32-bit x86 at size 100, so just make it size large for all machines. --- racket/src/racket/src/jit.h | 6 +----- racket/src/racket/src/jitcall.c | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/racket/src/racket/src/jit.h b/racket/src/racket/src/jit.h index 694c8823aa..16901f34bd 100644 --- a/racket/src/racket/src/jit.h +++ b/racket/src/racket/src/jit.h @@ -1315,11 +1315,7 @@ static void emit_indentation(mz_jit_state *jitter) /* jitstate */ /**********************************************************************/ -#if defined(SIXTY_FOUR_BIT_INTEGERS) || defined(MZ_USE_JIT_PPC) -# define JIT_BUFFER_PAD_SIZE 200 -#else -# define JIT_BUFFER_PAD_SIZE 100 -#endif +#define JIT_BUFFER_PAD_SIZE 200 #define PAST_LIMIT() ((uintptr_t)jit_get_raw_ip() > (uintptr_t)jitter->limit) #define CHECK_LIMIT() if (PAST_LIMIT()) return past_limit(jitter, __FILE__, __LINE__); diff --git a/racket/src/racket/src/jitcall.c b/racket/src/racket/src/jitcall.c index 6276c1f76d..2951c232b7 100644 --- a/racket/src/racket/src/jitcall.c +++ b/racket/src/racket/src/jitcall.c @@ -1709,6 +1709,7 @@ static int generate_call_path_with_unboxes(mz_jit_state *jitter, int direct_flos /* Reset V1 to rator for slow path: */ scheme_generate(rator, jitter, 0, 0, 0, JIT_V1, NULL, NULL); + CHECK_LIMIT(); mz_rs_sync(); return 1;