Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a
am: 82f4098497
Change-Id: I02cf9d73a15e93f109639edb13a4048bd91101d2
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 8e7a141..201e187 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -1776,6 +1776,9 @@
if (local_unload_list.contains(child)) {
continue;
} else if (child->is_linked() && child->get_local_group_root() != root) {
+ child->get_parents().remove_if([&] (const soinfo* parent) {
+ return parent == si;
+ });
external_unload_list.push_back(child);
} else if (child->get_parents().empty()) {
unload_list.push_back(child);