From 00f7d0eaa6bd93d33bf0c1429bf4ba0b3f28abac Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Thu, 19 Jul 2012 15:28:27 -0700 Subject: Global lock levels. Introduce the notion of the mutators/GC being a shared-exclusive (aka reader-writer) lock. Introduce globally ordered locks, analysable by annotalysis, statically at compile time. Add locking attributes to methods. More subtly, remove the heap_lock_ and split between various locks that are held for smaller periods (where work doesn't get blocked). Remove buggy Dalvik style thread transitions. Make GC use CMS in all cases when concurrent is enabled. Fix bug where suspend counts rather than debug suspend counts were sent to JDWP. Move the PathClassLoader to WellKnownClasses. In debugger refactor calls to send request and possibly suspend. Break apart different VmWait thread states. Move identity hash code to a shared method. Change-Id: Icdbfc3ce3fcccd14341860ac7305d8e97b51f5c6 --- src/compiler/codegen/CodegenUtil.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/codegen/CodegenUtil.cc') diff --git a/src/compiler/codegen/CodegenUtil.cc b/src/compiler/codegen/CodegenUtil.cc index a33a1627f4..dd7daba1d6 100644 --- a/src/compiler/codegen/CodegenUtil.cc +++ b/src/compiler/codegen/CodegenUtil.cc @@ -644,7 +644,7 @@ void installLiteralPools(CompilationUnit* cUnit) if (dataLIR != NULL) { while (dataLIR != NULL) { uint32_t target = dataLIR->operands[0]; - cUnit->compiler->AddCodePatch(cUnit->dex_cache, cUnit->dex_file, + cUnit->compiler->AddCodePatch(cUnit->dex_file, cUnit->method_idx, cUnit->access_flags, target, @@ -659,7 +659,7 @@ void installLiteralPools(CompilationUnit* cUnit) dataLIR = cUnit->methodLiteralList; while (dataLIR != NULL) { uint32_t target = dataLIR->operands[0]; - cUnit->compiler->AddMethodPatch(cUnit->dex_cache, cUnit->dex_file, + cUnit->compiler->AddMethodPatch(cUnit->dex_file, cUnit->method_idx, cUnit->access_flags, target, -- cgit v1.2.3-59-g8ed1b