summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/malloc_debug.cpp
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2019-04-02 23:04:52 +0900
committerJiyong Park <jiyong@google.com>2019-04-11 21:36:16 +0900
commit3ff116a68cfce57b4d343ae829542a9afdd2184b (patch)
treea90b7e707bf4cf44bd7bdb594e9149efacd85568 /libc/malloc_debug/malloc_debug.cpp
parent1b7881a393355fbbb19cc1b263c0f56f95b1eec7 (diff)
Load libc_malloc_* libraries from the runtime APEX
/system/lib/libc.so is a symlink to libc.so in the runtime APEX. libc_malloc_* libraries are bundled with libc.so because they share implementation details. However, since libc.so is loaded in the default namespace where the runtime APEX path (/apex/com.android.runtime/lib) is not accessible, libc.so has been using libc_malloc_* from /system/lib. This is wrong because libc.so (from the runtime APEX) and libc_malloc_* (from the platform) may not be in-sync. libc.so now uses android_dlopen_ext to load libc_malloc_* libraries correctly from the "runtime" linker namespace. Bug: 122566199 Test: bionic-unit-tests Merged-In: I46980fbe89e93ea79a7760c9b8eb007af0ada8d8 Change-Id: I46980fbe89e93ea79a7760c9b8eb007af0ada8d8 (cherry picked from commit 4e46ac69c23c8585bce17c2e032986a37bf33aef)
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions