summaryrefslogtreecommitdiff
path: root/compiler/jit/jit_compiler.cc
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2018-12-05 11:59:31 +0000
committer David Srbecky <dsrbecky@google.com> 2018-12-11 11:32:37 +0000
commitafc60cd6ddcd15353698bb453716313dea241ef8 (patch)
tree708bbf11e425ddb7a75874f27d272fd5484d0bf1 /compiler/jit/jit_compiler.cc
parent58431a7cf863b2eb7fe25eff6a28ec376f2f151d (diff)
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
Diffstat (limited to 'compiler/jit/jit_compiler.cc')
-rw-r--r--compiler/jit/jit_compiler.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/jit/jit_compiler.cc b/compiler/jit/jit_compiler.cc
index b9fd868f1c..9b8bb3e90e 100644
--- a/compiler/jit/jit_compiler.cc
+++ b/compiler/jit/jit_compiler.cc
@@ -142,10 +142,11 @@ extern "C" void jit_types_loaded(void* handle, mirror::Class** types, size_t cou
const ArrayRef<mirror::Class*> types_array(types, count);
std::vector<uint8_t> elf_file = debug::WriteDebugElfFileForClasses(
kRuntimeISA, compiler_options.GetInstructionSetFeatures(), types_array);
- MutexLock mu(Thread::Current(), *Locks::native_debug_interface_lock_);
// We never free debug info for types, so we don't need to provide a handle
// (which would have been otherwise used as identifier to remove it later).
- AddNativeDebugInfoForJit(nullptr /* handle */, elf_file);
+ AddNativeDebugInfoForJit(Thread::Current(),
+ /*code_ptr=*/ nullptr,
+ elf_file);
}
}