Home
last modified time | relevance | path

Searched refs:mapping (Results 1 – 3 of 3) sorted by relevance

/bionic/libc/bionic/
D__libc_init_main_thread.cpp142 ThreadMapping mapping = __allocate_thread_mapping(0, PTHREAD_GUARD_SIZE); in __libc_init_main_thread_final() local
143 if (mapping.mmap_base == nullptr) { in __libc_init_main_thread_final()
148 auto new_tcb = reinterpret_cast<bionic_tcb*>(mapping.static_tls + layout.offset_bionic_tcb()); in __libc_init_main_thread_final()
149 auto new_tls = reinterpret_cast<bionic_tls*>(mapping.static_tls + layout.offset_bionic_tls()); in __libc_init_main_thread_final()
151 __init_static_tls(mapping.static_tls); in __libc_init_main_thread_final()
157 main_thread.mmap_base = mapping.mmap_base; in __libc_init_main_thread_final()
158 main_thread.mmap_size = mapping.mmap_size; in __libc_init_main_thread_final()
159 main_thread.mmap_base_unguarded = mapping.mmap_base_unguarded; in __libc_init_main_thread_final()
160 main_thread.mmap_size_unguarded = mapping.mmap_size_unguarded; in __libc_init_main_thread_final()
Dpthread_create.cpp247 ThreadMapping mapping; in __allocate_thread() local
259 mapping = __allocate_thread_mapping(attr->stack_size, attr->guard_size); in __allocate_thread()
260 if (mapping.mmap_base == nullptr) return EAGAIN; in __allocate_thread()
262 stack_top = mapping.stack_top; in __allocate_thread()
263 attr->stack_base = mapping.stack_base; in __allocate_thread()
266 mapping = __allocate_thread_mapping(0, PTHREAD_GUARD_SIZE); in __allocate_thread()
267 if (mapping.mmap_base == nullptr) return EAGAIN; in __allocate_thread()
287 auto tcb = reinterpret_cast<bionic_tcb*>(mapping.static_tls + layout.offset_bionic_tcb()); in __allocate_thread()
288 auto tls = reinterpret_cast<bionic_tls*>(mapping.static_tls + layout.offset_bionic_tls()); in __allocate_thread()
291 __init_static_tls(mapping.static_tls); in __allocate_thread()
[all …]
/bionic/libc/
DAndroid.bp2240 // Generate a syscall name / number mapping. These objects are text files