/aosp12/bionic/libc/bionic/ |
H A D | malloc_common.cpp | 68 if (__predict_false(dispatch_table != nullptr)) { in calloc() 72 if (__predict_false(result == nullptr)) { in calloc() 81 if (__predict_false(dispatch_table != nullptr)) { in free() 90 if (__predict_false(dispatch_table != nullptr)) { in mallinfo() 98 if (__predict_false(dispatch_table != nullptr)) { in malloc_info() 115 if (__predict_false(dispatch_table != nullptr)) { in mallopt() 129 if (__predict_false(result == nullptr)) { in malloc() 151 if (__predict_false(result == nullptr)) { in memalign() 177 if (__predict_false(result == nullptr)) { in aligned_alloc() 214 if (__predict_false(result == nullptr)) { in pvalloc() [all …]
|
H A D | malloc_limit.cpp | 98 if (__predict_false(__builtin_add_overflow( in CheckLimit() 107 if (__predict_false(mem == nullptr)) { in IncrementLimit() 122 if (__predict_false(dispatch_table != nullptr)) { in LimitCalloc() 131 if (__predict_false(dispatch_table != nullptr)) { in LimitFree() 143 if (__predict_false(dispatch_table != nullptr)) { in LimitMalloc() 156 if (__predict_false(dispatch_table != nullptr)) { in LimitMemalign() 170 if (__predict_false(dispatch_table != nullptr)) { in LimitPosixMemalign() 175 if (__predict_false(retval != 0)) { in LimitPosixMemalign() 189 if (__predict_false(dispatch_table != nullptr)) { in LimitAlignedAlloc() 208 if (__predict_false(dispatch_table != nullptr)) { in LimitRealloc() [all …]
|
H A D | gwp_asan_wrappers.cpp | 111 if (__predict_false(GuardedAlloc.shouldSample())) { in gwp_asan_calloc() 123 if (__predict_false(GuardedAlloc.pointerIsMine(mem))) { in gwp_asan_free() 131 if (__predict_false(GuardedAlloc.shouldSample())) { in gwp_asan_malloc() 140 if (__predict_false(GuardedAlloc.pointerIsMine(mem))) { in gwp_asan_malloc_usable_size() 147 if (__predict_false(GuardedAlloc.pointerIsMine(old_mem))) { in gwp_asan_realloc() 159 if (__predict_false(GuardedAlloc.pointerIsMine(reinterpret_cast<void*>(base)))) { in gwp_asan_malloc_iterate()
|
H A D | fortify.cpp | 103 if (__predict_false(__size_mul_overflow(size, count, &total))) { in __fread_chk() 113 if (__predict_false(__size_mul_overflow(size, count, &total))) { in __fwrite_chk() 258 if (__predict_false(s_copy_len >= src_len)) { in __stpncpy_chk2() 283 if (__predict_false(s_len == 0)) { in __strchr_chk() 318 if (__predict_false(ret >= s_len)) { in __strlen_chk() 338 if (__predict_false(dst_buf_size == 0)) { in __strncat_chk() 369 if (__predict_false(s_copy_len >= src_len)) { in __strncpy_chk2() 401 if (__predict_false((mode & 0777) != mode)) { in __umask_chk() 470 if (__predict_false(dst_buf_size == 0)) { in __STRCAT_CHK()
|
H A D | pthread_key.cpp | 144 if (__predict_false(!KeyInValidRange(key))) { in pthread_key_delete() 160 if (__predict_false(!KeyInValidRange(key))) { in pthread_getspecific() 179 if (__predict_false(!KeyInValidRange(key))) { in pthread_setspecific()
|
H A D | pthread_mutex.cpp | 770 if (__predict_false(!atomic_compare_exchange_weak_explicit(&mutex->state, in MutexLockWithTimeout() 836 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_lock() 865 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_unlock() 914 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_trylock() 977 if (__predict_false(IsMutexDestroyed(old_state))) { in __pthread_mutex_timedlock() 1013 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_destroy()
|
H A D | fdsan.cpp | 64 if (__predict_false(!local_overflow)) { in at() 182 if (__predict_false((type & 0xff) != type)) { in android_fdsan_create_owner_tag()
|
H A D | malloc_tagged_pointers.h | 90 if (__predict_false(ptr == nullptr)) { in MaybeUntagAndCheckPointer()
|
/aosp12/bionic/libc/private/ |
H A D | bionic_fdtrack.h | 51 if (__fd != -1 && __predict_false(__android_fdtrack_hook) && \ 52 !__predict_false(__get_thread()->is_vforked())) { \ 55 if (!__predict_false(tls.fdtrack_disabled) && \ 56 !__predict_false(__android_fdtrack_globally_disabled)) { \ 82 if (__fd != -1 && __predict_false(__android_fdtrack_hook) && \ 83 !__predict_false(__get_thread()->is_vforked())) { \ 85 if (!__predict_false(tls.fdtrack_disabled) && \ 86 !__predict_false(__android_fdtrack_globally_disabled)) { \
|
H A D | bionic_fortify.h | 55 if (__predict_false(fd < 0)) { in __check_fd_set() 58 if (__predict_false(fd >= FD_SETSIZE)) { in __check_fd_set() 61 if (__predict_false(set_size < sizeof(fd_set))) { in __check_fd_set() 68 if (__predict_false(pollfd_array_length < fd_count)) { in __check_pollfd_array() 75 if (__predict_false(value > SSIZE_MAX)) { in __check_count() 82 if (__predict_false(claim > actual)) { in __check_buffer_access()
|
H A D | bionic_futex.h | 46 if (__predict_false(result == -1)) { in __futex()
|
/aosp12/system/logging/liblog/include/log/ |
H A D | log_radio.h | 39 #ifndef __predict_false 40 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro 67 ((__predict_false(cond)) \ 85 ((__predict_false(cond)) \ 102 ((__predict_false(cond)) \ 119 ((__predict_false(cond)) \ 136 ((__predict_false(cond)) \
|
H A D | log_system.h | 37 #ifndef __predict_false 38 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro 65 ((__predict_false(cond)) \ 83 ((__predict_false(cond)) \ 100 ((__predict_false(cond)) \ 117 ((__predict_false(cond)) \ 134 ((__predict_false(cond)) \
|
H A D | log_main.h | 78 #ifndef __predict_false 79 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro 135 ((__predict_false(cond)) ? (__FAKE_USE_VA_ARGS(__VA_ARGS__), \ 217 ((__predict_false(cond)) \ 232 ((__predict_false(cond)) \ 246 ((__predict_false(cond)) \ 260 ((__predict_false(cond)) \ 274 ((__predict_false(cond)) \
|
/aosp12/system/logging/liblog/include_vndk/log/ |
H A D | log_radio.h | 39 #ifndef __predict_false 40 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro 67 ((__predict_false(cond)) \ 85 ((__predict_false(cond)) \ 102 ((__predict_false(cond)) \ 119 ((__predict_false(cond)) \ 136 ((__predict_false(cond)) \
|
H A D | log_system.h | 37 #ifndef __predict_false 38 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro 65 ((__predict_false(cond)) \ 83 ((__predict_false(cond)) \ 100 ((__predict_false(cond)) \ 117 ((__predict_false(cond)) \ 134 ((__predict_false(cond)) \
|
H A D | log_main.h | 78 #ifndef __predict_false 79 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro 135 ((__predict_false(cond)) ? (__FAKE_USE_VA_ARGS(__VA_ARGS__), \ 217 ((__predict_false(cond)) \ 232 ((__predict_false(cond)) \ 246 ((__predict_false(cond)) \ 260 ((__predict_false(cond)) \ 274 ((__predict_false(cond)) \
|
/aosp12/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
H A D | reallocarr.c | 79 if (__predict_false((number|size) >= SQRT_SIZE_MAX && in __weak_alias() 86 if (__predict_false(nptr == NULL)) { in __weak_alias()
|
/aosp12/bionic/linker/ |
H A D | linker_memory.cpp | 65 if (__predict_false(fallback_tid) && __predict_false(gettid() == fallback_tid)) { in get_allocator()
|
H A D | linker_relocate.h | 64 } else if (__predict_false(ELF_ST_BIND(s->st_info) != STB_LOCAL)) { in is_symbol_global_and_defined()
|
H A D | linker_reloc_iterators.h | 80 if (__predict_false(group_flags & RELOCATION_GROUP_HAS_ADDEND_FLAG)) { in for_all_packed_relocs()
|
/aosp12/system/core/llkd/ |
H A D | libllkd.cpp | 138 if (__predict_false(fd < 0)) return false; in fill() 765 if (__predict_false(dp->d_type != DT_DIR)) { in getValidTidDir() 766 if (__predict_false(dp->d_type == DT_UNKNOWN)) { // can't b/c procfs in getValidTidDir() 791 if (__predict_false(pos == std::string::npos)) { in getSchedValue() 939 if (__predict_false(!llkSkipName(name))) { in llkThread() 979 if (__predict_false(!llkTopDirectory)) { in llkCheck() 982 if (__predict_false(!llkTopDirectory)) { in llkCheck() 1014 if (__predict_false(!taskDirectory)) { in llkCheck() 1254 if (__predict_false(tids.empty())) { in llkCheck()
|
/aosp12/bionic/libc/system_properties/ |
H A D | system_properties.cpp | 151 if (__predict_false(SERIAL_DIRTY(serial))) { in ReadMutablePropertyValue() 243 if (__predict_false(!pa)) { in Update()
|
/aosp12/system/memory/lmkd/ |
H A D | liblmkd_utils.cpp | 103 if (__predict_false(written >= (int)sizeof(buf))) { in create_memcg()
|
/aosp12/system/logging/logd/ |
H A D | ChattyLogBuffer.cpp | 39 #ifndef __predict_false 40 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro 350 if (__predict_false(caller_uid != AID_ROOT)) { // unlikely in Prune()
|