From 60c24f436d603c564d5351a6f81821f12635733c Mon Sep 17 00:00:00 2001 From: Ben Cheng Date: Mon, 4 Jan 2010 12:29:56 -0800 Subject: Tear down the code cache when it is full and restart from scratch. Because the code cache may be wiped out after safe points now the patching of inline cache for predicted chains is done through the compiler thread's work queue. --- vm/compiler/codegen/arm/CodegenDriver.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm/compiler/codegen/arm/CodegenDriver.c') diff --git a/vm/compiler/codegen/arm/CodegenDriver.c b/vm/compiler/codegen/arm/CodegenDriver.c index f3648b9bd..010e8ca23 100644 --- a/vm/compiler/codegen/arm/CodegenDriver.c +++ b/vm/compiler/codegen/arm/CodegenDriver.c @@ -4117,6 +4117,9 @@ bool dvmCompilerDoWork(CompilerWorkOrder *work) gDvmJit.printMe = oldPrintMe;; break; } + case kWorkOrderICPatch: + res = dvmJitPatchInlineCache((void *) work->pc, work->info); + break; default: res = false; dvmAbort(); -- cgit v1.2.3