MCPcopy Create free account
hub / github.com/apple/foundationdb / releaseMem

Function releaseMem

fdbclient/MultiVersionTransaction.actor.cpp:3084–3099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3082}
3083
3084THREAD_FUNC releaseMem(void* arg) {
3085 threadSleep(0.1 * deterministicRandom()->random01());
3086 try {
3087 // Must get for releaseMemory to work
3088 ((ThreadSingleAssignmentVar<int>*)arg)->get();
3089 } catch (Error&) {
3090 // Swallow
3091 }
3092 try {
3093 ((ThreadSingleAssignmentVar<int>*)arg)->releaseMemory();
3094 } catch (Error& e) {
3095 printf("Caught error in releaseMem: %s\n", e.name());
3096 ASSERT(false);
3097 }
3098 THREAD_RETURN;
3099}
3100
3101THREAD_FUNC destroy(void* arg) {
3102 threadSleep(0.1 * deterministicRandom()->random01());

Callers

nothing calls this directly

Calls 7

threadSleepFunction · 0.85
deterministicRandomFunction · 0.85
printfFunction · 0.85
random01Method · 0.80
releaseMemoryMethod · 0.80
getMethod · 0.65
nameMethod · 0.65

Tested by

no test coverage detected