aboutsummaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2018-09-25 00:11:05 -0700
committerJulian Veit <claymore1298@gmail.com>2022-03-14 10:55:09 +0100
commita0076bf0684eb491a3817a008c26bf348d22a536 (patch)
treeaa73288ba7588ef33a6300029df0a936ed0f8080 /libc/malloc_hooks/malloc_hooks.cpp
parent6e6ed4d6cd4081f0c755d2548a4752d9fcc157a2 (diff)
bionic: Squash of pre-P mutex behavior restoration
This is a squash of the following commits: Author: Ethan Chen <intervigil@gmail.com> Date: Tue Sep 25 00:11:05 2018 -0700 Actually restore pre-P mutex behavior Apps built against versions < P may not actually expect the EBUSY return code, and may crash or otherwise misbehave. Check for target SDK versions earlier than P when performing the IsMutexDestroyed check so any invocation of HandleUsingDestroyedMutex is bypassed and pre-P mutex behavior is restored. See 9e989f12d1186231d97dac6d038db7955acebdf3 for the change that introduced this new behavior. Change-Id: I45f8882c9527c63eed1ef5820a5004b8958d58ea Author: nx111 <gd.zhangdz@gmail.com> Date: Wed Oct 3 16:58:19 2018 +0800 bionic: Use legacy pthread_mutex_init() behavior on pre-P API levels * Google's changes to pthread_mutex_init is breaking RIL on certain Samsung devices like klte and hlte * To resolve this, add a check for their new additions to only apply the new behavior for P and higher APIs Change-Id: I41335c5c436fa28a66d044e6634466556dfd7f95 Author: Han Wang <416810799@qq.com> Date: Sat Sep 07 11:36:20 2019 +0200 Edit: Forward-port to Q: s/bionic_get_application_target_sdk_version/android_get_application_target_sdk_version Drop incorrect inline keyword for IsMutexDestroyed() Change-Id: Ia3eed5cfe2e5d40fa8b49aa5b4c565fb9632b8ec
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions