diff options
author | Lang Hames <lhames@gmail.com> | 2016-01-19 21:06:38 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-01-19 21:06:38 +0000 |
commit | 2fe7acb7737e8131cc0368f1f1d642124fc93fa6 (patch) | |
tree | 64fc194354a19f7096b4e6577706bda5314dd2c1 /lldb/packages/Python/lldbsuite/test/python_api/frame | |
parent | 29a4b5dc0d754c9a45f62a8af0cc36e8de4f968d (diff) | |
download | bcm5719-llvm-2fe7acb7737e8131cc0368f1f1d642124fc93fa6.tar.gz bcm5719-llvm-2fe7acb7737e8131cc0368f1f1d642124fc93fa6.zip |
[Orc] Refactor ObjectLinkingLayer::addObjectSet to defer loading objects until
they're needed.
Prior to this patch objects were loaded (via RuntimeDyld::loadObject) when they
were added to the ObjectLinkingLayer, but were not relocated and finalized until
a symbol address was requested. In the interim, another object could be loaded
and finalized with the same memory manager, causing relocation/finalization of
the first object to fail (as the first finalization call may have marked the
allocated memory for the first object read-only).
By deferring the loadObject call (and subsequent memory allocations) until an
object file is needed we can avoid prematurely finalizing memory.
llvm-svn: 258185
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame')
0 files changed, 0 insertions, 0 deletions