Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Merge "Use 0xde as the poison value after JIT code cache reset."
Browse files Browse the repository at this point in the history
  • Loading branch information
enh-google authored and android code review committed Sep 17, 2012
2 parents f31a060 + 474c8ab commit a177aa5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vm/compiler/codegen/arm/ArchUtility.cpp
Expand Up @@ -429,6 +429,10 @@ void dvmCompilerCacheFlush(long start, long end, long flags)
/* 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);
}

0 comments on commit a177aa5

Please sign in to comment.