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

Function tsd_state_compute

deps/jemalloc/src/tsd.c:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155/******************************************************************************/
156
157static uint8_t
158tsd_state_compute(tsd_t *tsd) {
159 if (!tsd_nominal(tsd)) {
160 return tsd_state_get(tsd);
161 }
162 /* We're in *a* nominal state; but which one? */
163 if (malloc_slow || tsd_local_slow(tsd) || tsd_global_slow()) {
164 return tsd_state_nominal_slow;
165 } else {
166 return tsd_state_nominal;
167 }
168}
169
170void
171tsd_slow_update(tsd_t *tsd) {

Callers 1

tsd_slow_updateFunction · 0.85

Calls 4

tsd_state_getFunction · 0.85
tsd_local_slowFunction · 0.85
tsd_global_slowFunction · 0.85
tsd_nominalFunction · 0.50

Tested by

no test coverage detected