Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cling] TO REVERT: Disable dealloc of sections (orcv2):
Browse files Browse the repository at this point in the history
Similar to an earlier commit titled
[cling] TO REVERT: Disable dealloc of sections:
we also need to disable freeing memory sections for OrcV2. See
the other commit for a description of the rationale.
Axel-Naumann committed Nov 20, 2022
1 parent 279de79 commit 22dd7f8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -52,8 +52,10 @@ InProcessMemoryManager::allocate(const JITLinkDylib *JD,
assert((SlabSize % sys::Process::getPageSizeEstimate()) == 0 &&
"Slab size is not a multiple of page size");
sys::MemoryBlock Slab(SlabStart, SlabSize);
#if 0
if (auto EC = sys::Memory::releaseMappedMemory(Slab))
return errorCodeToError(EC);
#endif
return Error::success();
}

0 comments on commit 22dd7f8

Please sign in to comment.