From a3e3315eb2de48ea902fc55403d4dfe364d16182 Mon Sep 17 00:00:00 2001 From: edwin Date: Tue, 24 Feb 2004 13:28:08 +0000 Subject: [PATCH] fix bug when jit_compile is entered recursively --- jit/jit.c | 5 ++--- src/vm/jit/jit.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/jit/jit.c b/jit/jit.c index 059624af0..12dd4bc12 100644 --- a/jit/jit.c +++ b/jit/jit.c @@ -29,7 +29,7 @@ Changes: Edwin Steiner - $Id: jit.c 909 2004-02-02 00:52:42Z twisti $ + $Id: jit.c 923 2004-02-24 13:28:08Z edwin $ */ @@ -1458,8 +1458,6 @@ methodptr jit_compile(methodinfo *m) intsDisable(); /* disable interrupts */ #endif - regs_ok = false; - /* mark start of dump memory area */ dumpsize = dump_size(); @@ -1521,6 +1519,7 @@ methodptr jit_compile(methodinfo *m) jcode = m->jcode; exceptiontablelength = m->exceptiontablelength; raw_extable = m->exceptiontable; + regs_ok = false; #ifdef STATISTICS count_tryblocks += exceptiontablelength; diff --git a/src/vm/jit/jit.c b/src/vm/jit/jit.c index 059624af0..12dd4bc12 100644 --- a/src/vm/jit/jit.c +++ b/src/vm/jit/jit.c @@ -29,7 +29,7 @@ Changes: Edwin Steiner - $Id: jit.c 909 2004-02-02 00:52:42Z twisti $ + $Id: jit.c 923 2004-02-24 13:28:08Z edwin $ */ @@ -1458,8 +1458,6 @@ methodptr jit_compile(methodinfo *m) intsDisable(); /* disable interrupts */ #endif - regs_ok = false; - /* mark start of dump memory area */ dumpsize = dump_size(); @@ -1521,6 +1519,7 @@ methodptr jit_compile(methodinfo *m) jcode = m->jcode; exceptiontablelength = m->exceptiontablelength; raw_extable = m->exceptiontable; + regs_ok = false; #ifdef STATISTICS count_tryblocks += exceptiontablelength; -- 2.25.1