From cca2ee5e6848018506942a7911d19c2caeaad49b Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Tue, 20 Jan 2015 07:50:17 -0700 Subject: [PATCH] fix `--disable-jit` build Also, avoid a compiler warning. --- racket/src/racket/src/thread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/racket/src/racket/src/thread.c b/racket/src/racket/src/thread.c index 975376f78e..d1a61957a4 100644 --- a/racket/src/racket/src/thread.c +++ b/racket/src/racket/src/thread.c @@ -177,7 +177,9 @@ THREAD_LOCAL_DECL(static int thread_swap_count); THREAD_LOCAL_DECL(int scheme_did_gc_count); THREAD_LOCAL_DECL(static intptr_t process_time_at_swap); +#ifdef MZ_PRECISE_GC THREAD_LOCAL_DECL(static intptr_t max_gc_pre_used_bytes); +#endif SHARED_OK static int init_load_on_demand = 1; @@ -8990,7 +8992,9 @@ static void get_ready_for_GC() } #ifdef MZ_PRECISE_GC +# ifdef MZ_USE_JIT scheme_clean_native_symtab(); +# endif #endif scheme_did_gc_count++;