summaryrefslogtreecommitdiff
path: root/runtime/class_linker.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-03-04 13:23:59 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2022-03-08 09:32:34 +0000
commit6ec990559f0da11e0b31a9aa6fda7e224a580bda (patch)
tree8486975b15f27b3823544fc30c98938b945c4126 /runtime/class_linker.h
parent1f5b158f5c111f3c81ec374e0aead39273e2f94e (diff)
Eagerly loopkup native symbols in zygote.
To avoid forked apps dirtying ArtMethods in the boot image. Test: imgdiag Bug: 162110941 Change-Id: Ib2be1b4e5ea55d010c5a795f9b24cb65b2e4474d
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r--runtime/class_linker.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h
index a503946634..dfa18ccc43 100644
--- a/runtime/class_linker.h
+++ b/runtime/class_linker.h
@@ -787,7 +787,7 @@ class ClassLinker {
// Registers the native method and returns the new entry point. NB The returned entry point
// might be different from the native_method argument if some MethodCallback modifies it.
const void* RegisterNative(Thread* self, ArtMethod* method, const void* native_method)
- REQUIRES_SHARED(Locks::mutator_lock_) WARN_UNUSED;
+ REQUIRES_SHARED(Locks::mutator_lock_);
// Unregister native code for a method.
void UnregisterNative(Thread* self, ArtMethod* method) REQUIRES_SHARED(Locks::mutator_lock_);