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/CompilerCodegen.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm/compiler/codegen/CompilerCodegen.h') diff --git a/vm/compiler/codegen/CompilerCodegen.h b/vm/compiler/codegen/CompilerCodegen.h index 3e9718c6d..ff39cd408 100644 --- a/vm/compiler/codegen/CompilerCodegen.h +++ b/vm/compiler/codegen/CompilerCodegen.h @@ -31,6 +31,9 @@ void dvmCompilerMIR2LIR(CompilationUnit *cUnit); /* Assemble LIR into machine code */ void dvmCompilerAssembleLIR(CompilationUnit *cUnit, JitTranslationInfo *info); +/* Patch inline cache content for polymorphic callsites */ +bool dvmJitPatchInlineCache(void *cellPtr, void *contentPtr); + /* Implemented in the codegen//ArchUtility.c */ void dvmCompilerCodegenDump(CompilationUnit *cUnit); -- cgit v1.2.3