MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / erase

Method erase

src/misc/alloc_tracker.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 void erase(void *key) {
119 if (!entries || !live) return;
120 size_t i = find(key);
121 if (entries[i].key == key) {
122 entries[i].key = kTombstone;
123 --live;
124 }
125 }
126};
127
128// Placement-new into static storage: never destructed, so track_free during

Callers 15

ReleaseMethod · 0.45
NormalizeMethod · 0.45
OnThreadExitMethod · 0.45
GTEST_LOCK_EXCLUDED_Function · 0.45
StripTrailingSpacesFunction · 0.45
WebServer_AdapterMethod · 0.45
release_writerMethod · 0.45
DasGlfw_ChainClearFunction · 0.45
DasGlfw_DestroyWindowFunction · 0.45

Calls 1

findFunction · 0.50

Tested by 8

ReleaseMethod · 0.36
NormalizeMethod · 0.36
OnThreadExitMethod · 0.36
GTEST_LOCK_EXCLUDED_Function · 0.36
StripTrailingSpacesFunction · 0.36