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

Function ensureCacheReady

src/misc/alloc_tracker_fast_stack.cpp:106–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static __declspec(noinline) void ensureCacheReady() noexcept {
107 if (g_cacheReady.load(std::memory_order_acquire)) return;
108 std::lock_guard<std::mutex> lock(getCacheMutex());
109 if (g_cacheReady.load(std::memory_order_relaxed)) return;
110 buildModuleCache();
111 g_cacheReady.store(true, std::memory_order_release);
112}
113
114static __forceinline bool findModule(ULONG64 pc, const CachedModule *&lastModule, ULONG64 &imageBase) {
115 if (lastModule && pc >= imageBase && pc < lastModule->end)

Callers 2

das_fast_stack_captureFunction · 0.85

Calls 2

buildModuleCacheFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected