aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/RallocUtil.c
diff options
context:
space:
mode:
authorBill Buzbee <buzbee@google.com>2010-06-23 16:36:50 -0700
committerBill Buzbee <buzbee@google.com>2010-06-23 16:54:15 -0700
commitf8315e2a7b5167f8875543e3b88eb17f9df387ca (patch)
tree19bd43e128aaa84ef97b8d2e155f3f48c5075bfd /vm/compiler/codegen/arm/RallocUtil.c
parentcc68c4b069457743030e40e9fafab411199ca80a (diff)
Jit: Fix for 2793725 SIGSEGV in JIT code cache
r8 was missing from the handler clobber set, and is stepped on by the handlers for inline string compareto and indexof. Change-Id: I6e5d6f46b595d638863b27edcc8718157a3e411f
Diffstat (limited to 'vm/compiler/codegen/arm/RallocUtil.c')
-rw-r--r--vm/compiler/codegen/arm/RallocUtil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/compiler/codegen/arm/RallocUtil.c b/vm/compiler/codegen/arm/RallocUtil.c
index 80ce96820..e917995fc 100644
--- a/vm/compiler/codegen/arm/RallocUtil.c
+++ b/vm/compiler/codegen/arm/RallocUtil.c
@@ -482,6 +482,8 @@ extern void dvmCompilerClobberHandlerRegs(CompilationUnit *cUnit)
//TUNING: reduce the set of regs used by handlers. Only a few need lots.
dvmCompilerClobberCallRegs(cUnit);
dvmCompilerClobber(cUnit, r4PC);
+ dvmCompilerClobber(cUnit, r7);
+ dvmCompilerClobber(cUnit, r8);
dvmCompilerClobber(cUnit, r9);
dvmCompilerClobber(cUnit, r10);
}