diff options
author | 2022-03-07 11:45:47 +0000 | |
---|---|---|
committer | 2022-03-07 11:45:47 +0000 | |
commit | 3d004a52434a7dbbc73bb477b7475cad27af6e94 (patch) | |
tree | bb79e448197020c4d9126f550e69b0eb51afe49a /runtime/entrypoints/entrypoint_utils.h | |
parent | 01ad6eb32f46860a14c24dd5429a6f7afa09f013 (diff) | |
parent | b740438513307629491c575dbf895bbbf215f77c (diff) |
Revert^2 "Add bss support for inlining BCP DexFiles for single image" am: b740438513
Original change: https://android-review.googlesource.com/c/platform/art/+/1968661
Change-Id: Ie0079c06b66f788c8b1ce115742615061dffbfd3
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.h')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.h b/runtime/entrypoints/entrypoint_utils.h index 5faf387093..8b6fc69bea 100644 --- a/runtime/entrypoints/entrypoint_utils.h +++ b/runtime/entrypoints/entrypoint_utils.h @@ -213,9 +213,14 @@ bool NeedsClinitCheckBeforeCall(ArtMethod* method) REQUIRES_SHARED(Locks::mutato ObjPtr<mirror::Object> 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`. -void MaybeUpdateBssMethodEntry(ArtMethod* callee, MethodReference callee_reference); +// Update .bss method entrypoint if the `outer_method` has a valid OatFile, and either +// A) the `callee_reference` has the same OatFile as `outer_method`, or +// B) the `callee_reference` comes from a BCP DexFile that was present during `outer_method`'s +// OatFile compilation. +// In both cases, we require that the oat file has a .bss entry for the `callee_reference`. +void MaybeUpdateBssMethodEntry(ArtMethod* callee, + MethodReference callee_reference, + ArtMethod* outer_method) REQUIRES_SHARED(Locks::mutator_lock_); } // namespace art |