summaryrefslogtreecommitdiff
path: root/runtime/jit/jit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/jit/jit.cc')
-rw-r--r--runtime/jit/jit.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/jit/jit.cc b/runtime/jit/jit.cc
index 13c1f813bd..5dc739edb2 100644
--- a/runtime/jit/jit.cc
+++ b/runtime/jit/jit.cc
@@ -128,6 +128,10 @@ bool Jit::LoadCompiler(std::string* error_msg) {
bool Jit::CompileMethod(mirror::ArtMethod* method, Thread* self) {
DCHECK(!method->IsRuntimeMethod());
+ if (Dbg::IsDebuggerActive() && Dbg::MethodHasAnyBreakpoints(method)) {
+ VLOG(jit) << "JIT not compiling " << PrettyMethod(method) << " due to breakpoint";
+ return false;
+ }
const bool result = jit_compile_method_(jit_compiler_handle_, method, self);
if (result) {
method->SetEntryPointFromInterpreter(artInterpreterToCompiledCodeBridge);