From afc60cd6ddcd15353698bb453716313dea241ef8 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Wed, 5 Dec 2018 11:59:31 +0000 Subject: Cleanup native debug interface api. Strongly type the DEX file arguments. Remove the need for callers to worry about locks. Use std::map instead of std::unordered_map internally. Test: ./art/test.py -b -r -t 137 Change-Id: I8bd79b796b5c7da265afc43a07ed227f550116c7 --- compiler/optimizing/optimizing_compiler.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 92aaa19121..c9b4d36bc4 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -1470,13 +1470,14 @@ void OptimizingCompiler::GenerateJitDebugInfo( compiler_options.GetInstructionSetFeatures(), mini_debug_info, info); - MutexLock mu(Thread::Current(), *Locks::native_debug_interface_lock_); - AddNativeDebugInfoForJit(reinterpret_cast(info.code_address), elf_file); + AddNativeDebugInfoForJit(Thread::Current(), + reinterpret_cast(info.code_address), + elf_file); VLOG(jit) << "JIT mini-debug-info added for " << ArtMethod::PrettyMethod(method) << " size=" << PrettySize(elf_file.size()) - << " total_size=" << PrettySize(GetJitNativeDebugInfoMemUsage()); + << " total_size=" << PrettySize(GetJitMiniDebugInfoMemUsage()); } } // namespace art -- cgit v1.2.3-59-g8ed1b