HomePhabricator

Extend RTDyld API to enable optionally precomputing the total amount of memory

Description

Extend RTDyld API to enable optionally precomputing the total amount of memory
required for all sections in a module. This can be useful when targets or
code-models place strict requirements on how sections must be laid out
in memory.

If RTDyldMemoryManger::needsToReserveAllocationSpace() is overridden to return
true then the JIT will call the following method on the memory manager, which
can be used to preallocate the necessary memory.

void RTDyldMemoryManager::reserveAllocationSpace(uintptr_t CodeSize,

uintptr_t DataSizeRO,
uintptr_t DataSizeRW)

Patch by Vaidas Gasiunas. Thanks very much Viadas!

Details

Committed
lhamesFeb 12 2014, 1:30 PM
Parents
rL201258: Rename Windows.h to WindowsSupport.h to avoid ambiguity
Branches
Unknown
Tags
Unknown

Event Timeline