summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authordimitry <dimitry@google.com>2017-07-17 11:24:54 +0200
committerdimitry <dimitry@google.com>2017-07-17 11:33:51 +0200
commitd6b25861d05817ace9a19c55e3a0e5e38a4177aa (patch)
tree5066660c1070a6f402537050f39579dfaa019028 /libc/malloc_hooks/malloc_hooks.cpp
parent02b94ea8ff8a1cffda30146f69db367e8db8b602 (diff)
loader: fix dlopen performance regression caused by fix for CVE-2017-0670
Fix for CVE-2017-0670 in lmp-mr1 branch caused significant slowdowns on dlopens for libraries with large dependency trees. Modified is_recursive check led to unecessary check of already linked libraries. This change excludes already loaded and linked libraries from this check since it is redundant - linker already did it while loading these libraries. Bug: 63658102 Test: run bionic-unit-tests --gtest_filter=dl*:Dl* Test: manually check load times for libraries with large dependency trees. Change-Id: Idf25376f4889c4430442ff16a16e1d79ccb77b27
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions