LLVM: llvm::jitlink::JITLinkMemoryManager::InFlightAlloc Class Reference (original) (raw)
Represents an allocation which has not been finalized yet.
InFlightAllocs manage both executor memory allocations and working memory allocations.
On finalization, the InFlightAlloc should transfer the content of working memory into executor memory, apply memory protections, and run any finalization functions.
Working memory should be kept alive at least until one of the following happens: (1) the InFlightAlloc instance is destroyed, (2) the InFlightAlloc is abandoned, (3) finalized target memory is destroyed.
If abandon is called then working memory and executor memory should both be freed.
Definition at line 122 of file JITLinkMemoryManager.h.