OSDN Git Service

Fix trace builder to not confuse self-verification.
[android-x86/dalvik.git] / vm / mterp / c / gotoTargets.c
index c34d6c4..67b3299 100644 (file)
@@ -578,7 +578,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