MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / initTLS

Method initTLS

src/vmStructs.cpp:583–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583void VMStructs::initTLS(void* vm_thread) {
584 for (int i = 0; i < 1024; i++) {
585 if (pthread_getspecific((pthread_key_t)i) == vm_thread) {
586 _tls_index = i;
587 break;
588 }
589 }
590}
591
592void VMStructs::initThreadBridge() {
593 jthread thread;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected