diff options
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.h')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.h b/runtime/entrypoints/entrypoint_utils.h index dfc1eddde3..72b4c030f8 100644 --- a/runtime/entrypoints/entrypoint_utils.h +++ b/runtime/entrypoints/entrypoint_utils.h @@ -214,10 +214,11 @@ ArtMethod* GetCalleeSaveOuterMethod(Thread* self, CalleeSaveType type) // The caller is responsible for performing that check. bool NeedsClinitCheckBeforeCall(ArtMethod* method) REQUIRES_SHARED(Locks::mutator_lock_); -constexpr size_t kJniCookieSize = sizeof(uint32_t); - -inline HandleScope* GetGenericJniHandleScope(ArtMethod** managed_sp, - size_t num_handle_scope_references); +// Returns the synchronization object for a native method for a GenericJni frame +// we have just created or are about to exit. The synchronization object is +// the class object for static methods and the `this` object otherwise. +jobject GetGenericJniSynchronizationObject(Thread* self, ArtMethod* called) + REQUIRES_SHARED(Locks::mutator_lock_); // Update .bss method entrypoint if the `callee_reference` has an associated oat file // and that oat file has a .bss entry for the `callee_reference`. |