summaryrefslogtreecommitdiffstats
path: root/vm/compiler/Frontend.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm/compiler/Frontend.c')
-rw-r--r--vm/compiler/Frontend.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm/compiler/Frontend.c b/vm/compiler/Frontend.c
index b4c48e4a3..1095225b3 100644
--- a/vm/compiler/Frontend.c
+++ b/vm/compiler/Frontend.c
@@ -449,6 +449,11 @@ bool dvmCompileTrace(JitTraceDescription *desc, int numMaxInsts,
return true;
}
+ /* If the work order is stale, discard it */
+ if (info->cacheVersion != gDvmJit.cacheVersion) {
+ return false;
+ }
+
compilationId++;
memset(&cUnit, 0, sizeof(CompilationUnit));