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

Function cachedLookupOnly

src/misc/alloc_tracker_fast_stack.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static __forceinline PRUNTIME_FUNCTION cachedLookupOnly(ULONG64 pc, const CachedModule *&lastModule,
146 ULONG64 &imageBase, int &pdataHint) {
147 const CachedModule *prev = lastModule;
148 if (findModule(pc, lastModule, imageBase)) {
149 if (lastModule != prev) pdataHint = (int)(lastModule->pdataLast) >> 1;
150 return findFunctionEntry(lastModule, (DWORD)(pc - imageBase), pdataHint);
151 }
152 return nullptr;
153}
154
155// SEH-wrapped PE parse: reads from dllBase may fault on unmapped pages during
156// module teardown. Returns true if newMod was populated. Kept free of C++

Callers 3

tryAddAndLookupFunction · 0.85
walk_from_contextFunction · 0.85

Calls 2

findModuleFunction · 0.85
findFunctionEntryFunction · 0.85

Tested by

no test coverage detected