diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/class_linker.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/class_linker.cc b/src/class_linker.cc index f6d555d8cc..700174eff5 100644 --- a/src/class_linker.cc +++ b/src/class_linker.cc @@ -1398,7 +1398,8 @@ void LinkCode(SirtRef<Method>& method, const OatFile::OatClass* oat_class, uint3 if (method->IsStatic() && !method->IsConstructor()) { // For static methods excluding the class initializer, install the trampoline method->SetCode(runtime->GetResolutionStubArray(Runtime::kStaticMethod)->GetData()); - } else if (method->IsNative()) { + } + if (method->IsNative()) { // unregistering restores the dlsym lookup stub method->UnregisterNative(Thread::Current()); } |