/bionic/libc/bionic/ |
D | semaphore.cpp | 145 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; in __sem_dec() local 156 SEMCOUNT_DECREMENT(old_value) | shared)); in __sem_dec() 165 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; in __sem_trydec() local 176 SEMCOUNT_DECREMENT(old_value) | shared)); in __sem_trydec() 189 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; in __sem_inc() local 204 new_value = SEMCOUNT_ONE | shared; in __sem_inc() 206 new_value = SEMCOUNT_INCREMENT(old_value) | shared; in __sem_inc() 216 unsigned int shared = SEM_GET_SHARED(sem_count_ptr); in sem_wait() local 223 … int result = __futex_wait_ex(sem_count_ptr, shared, shared | SEMCOUNT_MINUS_ONE, false, nullptr); in sem_wait() 250 unsigned int shared = SEM_GET_SHARED(sem_count_ptr); in __sem_timedwait() local [all …]
|
D | pthread_mutex.cpp | 140 bool shared; member 186 ret = -__futex_pi_lock_ex(&mutex.owner_tid, mutex.shared, use_realtime_clock, abs_timeout); in PIMutexTimedLock() 225 return -__futex_pi_unlock(&mutex.owner_tid, mutex.shared); in PIMutexUnlock() 544 pi_mutex.shared = (*attr & MUTEXATTR_SHARED_MASK) != 0; in pthread_mutex_init() 556 uint16_t shared) { in NormalMutexTryLock() argument 557 const uint16_t unlocked = shared | MUTEX_STATE_BITS_UNLOCKED; in NormalMutexTryLock() 558 const uint16_t locked_uncontended = shared | MUTEX_STATE_BITS_LOCKED_UNCONTENDED; in NormalMutexTryLock() 581 uint16_t shared, in NormalMutexLock() argument 584 if (__predict_true(NormalMutexTryLock(mutex, shared) == 0)) { in NormalMutexLock() 594 const uint16_t unlocked = shared | MUTEX_STATE_BITS_UNLOCKED; in NormalMutexLock() [all …]
|
D | bionic_futex.cpp | 61 int __futex_wait_ex(volatile void* ftx, bool shared, int value, bool use_realtime_clock, in __futex_wait_ex() argument 63 return FutexWithTimeout(ftx, (shared ? FUTEX_WAIT_BITSET : FUTEX_WAIT_BITSET_PRIVATE), value, in __futex_wait_ex() 67 int __futex_pi_lock_ex(volatile void* ftx, bool shared, bool use_realtime_clock, in __futex_pi_lock_ex() argument 69 return FutexWithTimeout(ftx, (shared ? FUTEX_LOCK_PI : FUTEX_LOCK_PI_PRIVATE), 0, in __futex_pi_lock_ex()
|
/bionic/libc/private/ |
D | bionic_futex.h | 57 static inline int __futex_wake_ex(volatile void* ftx, bool shared, int count) { in __futex_wake_ex() argument 58 return __futex(ftx, shared ? FUTEX_WAKE : FUTEX_WAKE_PRIVATE, count, nullptr, 0); in __futex_wake_ex() 65 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value) { in __futex_wait_ex() argument 66 return __futex(ftx, (shared ? FUTEX_WAIT_BITSET : FUTEX_WAIT_BITSET_PRIVATE), value, nullptr, in __futex_wait_ex() 70 __LIBC_HIDDEN__ int __futex_wait_ex(volatile void* ftx, bool shared, int value, 73 static inline int __futex_pi_unlock(volatile void* ftx, bool shared) { in __futex_pi_unlock() argument 74 return __futex(ftx, shared ? FUTEX_UNLOCK_PI : FUTEX_UNLOCK_PI_PRIVATE, 0, nullptr, 0); in __futex_pi_unlock() 77 __LIBC_HIDDEN__ int __futex_pi_lock_ex(volatile void* ftx, bool shared, bool use_realtime_clock,
|
D | bionic_lock.h | 73 bool shared = process_shared; /* cache to local variable */ in unlock() local 81 __futex_wake_ex(&state, shared, 1); in unlock()
|
/bionic/tests/ |
D | Android.bp | 75 // Prebuilt shared libraries for use in tests. 459 shared: { 475 shared: { 505 shared: { 609 shared: { 624 shared: { 655 shared: { 670 shared: { 691 shared: { 716 shared: { [all …]
|
D | thread_local_test.cpp | 55 TEST(thread_local_storage, shared) { in TEST() argument
|
/bionic/benchmarks/linker_relocation/ |
D | Android.bp | 36 // "link:shared" variant (as opposed to "link:static"), whereas the cc_benchmark has no 37 // "link:(shared/static)" variation. It appears that Soong needs to be fixed to make this benchmark
|
D | README.md | 4 of shared objects with many symbols and relocations. It mimics the work involved
|
/bionic/linker/ |
D | Android.bp | 246 // -shared is used to overwrite the -Bstatic and -static flags triggered by enabling 247 // static_executable. This dynamic linker is actually a shared object linked with static 250 "-shared", 268 // Leave the symbols in the shared library so that stack unwinders can produce
|
D | ld.config.format.md | 68 # For every link define list of shared libraries. This is list of the libraries accessible from
|
/bionic/tests/libs/ |
D | Android.bp | 313 // 2. Check that public libraries loaded in different namespaces are shared 316 // 4. Check that having access to shared library (libnstest_public.so) 368 // Build test helper libraries for linker namespaces for allow all shared libs 371 // shared libs. 1246 // Library for inaccessible shared library test 1357 // Tool to use to align the shared libraries in a zip file.
|
/bionic/docs/ |
D | elf-tls.md | 21 At run-time, TLS variables are allocated on a module-by-module basis, where a module is a shared 25 few instructions. TLS variables belonging to dlopen'ed shared objects, on the other hand, may be 74 For example, if we have this C code in a shared object: 158 If the variable is part of the Static TLS Block (i.e. the executable or an initially-loaded shared 166 // in a shared object the executable links against. 201 * Code compiled with `-fpic` could be in a shared object, so use GD/LD. 225 As long as a shared object is one of the initially-loaded modules, a better option is to use 237 For example, if we have this C code in a shared object: 376 library is typically a shared object, but for Android, we link our own `libthread_db.a` into 468 ELF TLS isn't implemented on older Android platforms, so dynamic executables and shared objects [all …]
|
/bionic/libc/ |
D | Android.bp | 1490 // libc_common_shared.a For shared libraries. 1600 shared: { 1643 shared: { 1662 // Leave the symbols in the shared library so that stack unwinders can produce 1668 shared: { 1679 // Leave the symbols in the shared library so that stack unwinders can produce 1685 shared: { 1692 // Leave the symbols in the shared library so that stack unwinders can produce 1698 shared: { 1913 shared: { [all …]
|
/bionic/ |
D | android-changes-for-ndk-developers.md | 67 group. The global group is shared by all libraries and contains the main 131 ## Opening shared libraries directly from an APK 238 Starting with API 23, shared objects must not contain text 266 Note: it is technically possible to have a shared object with the TEXTREL 326 Each ELF shared object (“native library”) must have a SONAME (Shared
|
D | README.md | 23 `cos(3)` in a separate library to save space in the days before shared 67 # Each architecture has its own subdirectory for stuff that isn't shared
|
/bionic/libdl/ |
D | Android.bp | 86 shared: {
|
/bionic/libc/malloc_debug/ |
D | README.md | 692 symbols in your app's shared libraries rather than stripping them. That
|