MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / tsd_boot1

Function tsd_boot1

deps/jemalloc/include/jemalloc/internal/tsd_win.h:81–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81JEMALLOC_ALWAYS_INLINE void
82tsd_boot1(void) {
83 tsd_wrapper_t *wrapper;
84 wrapper = (tsd_wrapper_t *)
85 malloc_tsd_malloc(sizeof(tsd_wrapper_t));
86 if (wrapper == NULL) {
87 malloc_write("<jemalloc>: Error allocating TSD\n");
88 abort();
89 }
90 tsd_boot_wrapper.initialized = false;
91 tsd_cleanup(&tsd_boot_wrapper.val);
92 wrapper->initialized = false;
93 tsd_t initializer = TSD_INITIALIZER;
94 wrapper->val = initializer;
95 tsd_wrapper_set(wrapper);
96}
97JEMALLOC_ALWAYS_INLINE bool
98tsd_boot(void) {
99 if (tsd_boot0()) {

Callers 1

tsd_bootFunction · 0.70

Calls 4

tsd_wrapper_setFunction · 0.70
malloc_tsd_mallocFunction · 0.50
malloc_writeFunction · 0.50
tsd_cleanupFunction · 0.50

Tested by

no test coverage detected