Use 0xde as the poison value after JIT code cache reset.
(cherry-pick of 60497bbcee68d98b2bdcb3fb64682b00d61b942d.)
Change-Id: I4f8c1bac2ac3bdc1d931e91f3e2e8038fe4c2b5a
diff --git a/vm/compiler/codegen/arm/ArchUtility.cpp b/vm/compiler/codegen/arm/ArchUtility.cpp
index 2f59193..9f87b7f 100644
--- a/vm/compiler/codegen/arm/ArchUtility.cpp
+++ b/vm/compiler/codegen/arm/ArchUtility.cpp
@@ -429,6 +429,10 @@
/* Target-specific cache clearing */
void dvmCompilerCacheClear(char *start, size_t size)
{
- /* 0 is an invalid opcode for arm. */
- memset(start, 0, size);
+ /*
+ * de is an invalid opcode for arm.
+ * From gdb disassembly: <UNDEFINED> instruction: 0xdede
+ */
+
+ memset(start, 0xde, size);
}