Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dbionic_elf_tls.cpp292 void* mod_ptr = dtv->modules[module_idx]; in tls_get_addr_slow_path() local
293 if (mod_ptr == nullptr) { in tls_get_addr_slow_path()
295 mod_ptr = __libc_shared_globals()->tls_allocator.memalign(segment.alignment, segment.size); in tls_get_addr_slow_path()
297 memcpy(mod_ptr, segment.init_ptr, segment.init_size); in tls_get_addr_slow_path()
299 dtv->modules[module_idx] = mod_ptr; in tls_get_addr_slow_path()
302 return static_cast<char*>(mod_ptr) + ti->offset; in tls_get_addr_slow_path()
320 void* mod_ptr = dtv->modules[__tls_module_id_to_idx(ti->module_id)]; in TLS_GET_ADDR() local
321 if (__predict_true(mod_ptr != nullptr)) { in TLS_GET_ADDR()
322 return static_cast<char*>(mod_ptr) + ti->offset; in TLS_GET_ADDR()