fix bug when jit_compile is entered recursively
authoredwin <none@none>
Tue, 24 Feb 2004 13:28:08 +0000 (13:28 +0000)
committeredwin <none@none>
Tue, 24 Feb 2004 13:28:08 +0000 (13:28 +0000)
jit/jit.c
src/vm/jit/jit.c

index 059624af00588a0cefbadac42e6459f2293683f4..12dd4bc1290f4290298ae39e791b52c8ee9c1ed3 100644 (file)
--- 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;
index 059624af00588a0cefbadac42e6459f2293683f4..12dd4bc1290f4290298ae39e791b52c8ee9c1ed3 100644 (file)
@@ -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;