summaryrefslogtreecommitdiff
path: root/compiler/optimizing/stack_map_stream.cc
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2022-03-23 08:25:33 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-04-06 15:09:46 +0000
commitf4bd5debf74ee5473756b4cbd71fadb3506e653b (patch)
tree115bb605fbd66a90d0c3ff12cc196fd4ebdca528 /compiler/optimizing/stack_map_stream.cc
parent6a1d9b9106183d829fd17e81cce345d1ef81f034 (diff)
Touch up changes related to cross-dex compiling
* Added exaplanatory comments * Used IsBootStrapClassLoaded to avoid a read barrier * Use the new multi-image from CompilerOptions Bug: 154012332 Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: I10a4ed0f9d5b2e796102846564a54dc90f297068
Diffstat (limited to 'compiler/optimizing/stack_map_stream.cc')
-rw-r--r--compiler/optimizing/stack_map_stream.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/stack_map_stream.cc b/compiler/optimizing/stack_map_stream.cc
index 7317bdfc8f..f55bbee1c8 100644
--- a/compiler/optimizing/stack_map_stream.cc
+++ b/compiler/optimizing/stack_map_stream.cc
@@ -224,7 +224,7 @@ void StackMapStream::BeginInlineInfoEntry(ArtMethod* method,
ScopedObjectAccess soa(Thread::Current());
const DexFile* dex_file = method->GetDexFile();
if (!IsSameDexFile(*outer_dex_file, *dex_file)) {
- if (method->GetDeclaringClass()->GetClassLoader() == nullptr) {
+ if (method->GetDeclaringClass()->IsBootStrapClassLoaded()) {
ClassLinker* class_linker = Runtime::Current()->GetClassLinker();
const std::vector<const DexFile*>& boot_class_path = class_linker->GetBootClassPath();
auto it = std::find_if(
@@ -269,7 +269,7 @@ void StackMapStream::BeginInlineInfoEntry(ArtMethod* method,
ScopedObjectAccess soa(Thread::Current());
if (inline_info.GetDexPc() != static_cast<uint32_t>(-1) &&
!IsSameDexFile(*outer_dex_file, *method->GetDexFile())) {
- if (method->GetDeclaringClass()->GetClassLoader() == nullptr) {
+ if (method->GetDeclaringClass()->IsBootStrapClassLoaded()) {
CHECK_EQ(method_info.GetDexFileIndexKind(), MethodInfo::kKindBCP);
ClassLinker* class_linker = Runtime::Current()->GetClassLinker();
const std::vector<const DexFile*>& boot_class_path = class_linker->GetBootClassPath();