OSDN Git Service

Fix trace builder to not confuse self-verification.
[android-x86/dalvik.git] / vm / mterp / out / InterpC-portdbg.c
index 45a18da..c2ae63c 100644 (file)
@@ -3911,7 +3911,9 @@ GOTO_TARGET(exceptionThrown)
 
 #if defined(WITH_JIT)
         // Something threw during trace selection - abort the current trace
-        interpState->jitState = kJitTSelectEnd;
+        if (interpState->jitState == kJitTSelect) {
+            interpState->jitState = kJitTSelectEnd;
+        }
 #endif
         /*
          * We save off the exception and clear the exception status.  While