From 9c924e89e5f52da9faadd1e4e60c73eaed6bc9d1 Mon Sep 17 00:00:00 2001 From: Brad Stenning Date: Mon, 11 Oct 2021 19:09:00 -0700 Subject: Add support to place shared libraries after the dex path This allows for a shared library to overriden by content in the dex path Bug: 179429740 Test: m test-art-host-gtest-art_runtime_tests32 Change-Id: I5f69c7bf32b7bd389eff8bdbb21616ba89ed9e87 --- runtime/class_loader_context.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'runtime/class_loader_context.h') diff --git a/runtime/class_loader_context.h b/runtime/class_loader_context.h index 33af16a225..eceea00177 100644 --- a/runtime/class_loader_context.h +++ b/runtime/class_loader_context.h @@ -225,6 +225,8 @@ class ClassLoaderContext { ClassLoaderType type; // Shared libraries this context has. std::vector> shared_libraries; + // Shared libraries that will be loaded after apks code that this context has. + std::vector> shared_libraries_after; // The list of class path elements that this loader loads. // Note that this list may contain relative paths. std::vector classpath; @@ -297,7 +299,8 @@ class ClassLoaderContext { Handle class_loader, Handle> dex_elements, ClassLoaderInfo* child_info, - bool is_shared_library) + bool is_shared_library, + bool is_after) REQUIRES_SHARED(Locks::mutator_lock_); // Encodes the context as a string suitable to be passed to dex2oat or to be added to the -- cgit v1.2.3-59-g8ed1b