Remove unnecessary cache alignment fixes
This change reverts two alignment changes relating to 32-bit ARM
runtimes on 32-bit ARMv7 kernels. These were speculative fixes before
the problem was properly understood.
This means code alignment in the JIT code cache is determined by
GetInstructionSetAlignment() for all architectures.
The first commit removed is 521ff988097af7c79a0b94368d33d21f7c7dfb7d.
The second is df1ab205c78fbfae152947e9618d8871a42a744b.
Test: manual (see b/132205399)
Bug: 136150630
Bug: 132205399
Change-Id: I9e5ed4b2271df80b7c7ea81cdb088b45c456b86a
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc
index dd1dbea..709882c 100644
--- a/runtime/jit/jit_code_cache.cc
+++ b/runtime/jit/jit_code_cache.cc
@@ -373,7 +373,7 @@
}
static uintptr_t FromCodeToAllocation(const void* code) {
- size_t alignment = GetJitCodeAlignment();
+ size_t alignment = GetInstructionSetAlignment(kRuntimeISA);
return reinterpret_cast<uintptr_t>(code) - RoundUp(sizeof(OatQuickMethodHeader), alignment);
}