diff options
Diffstat (limited to 'runtime/art_method.cc')
| -rw-r--r-- | runtime/art_method.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/art_method.cc b/runtime/art_method.cc index 7de8916ad5..d591e0992c 100644 --- a/runtime/art_method.cc +++ b/runtime/art_method.cc @@ -664,7 +664,9 @@ const OatQuickMethodHeader* ArtMethod::GetOatQuickMethodHeader(uintptr_t pc) { } if (existing_entry_point == GetQuickInstrumentationEntryPoint()) { // We are running the generic jni stub, but the method is being instrumented. - DCHECK_EQ(pc, 0u) << "Should be a downcall"; + // NB We would normally expect the pc to be zero but we can have non-zero pc's if + // instrumentation is installed or removed during the call which is using the generic jni + // trampoline. DCHECK(IsNative()); return nullptr; } |