diff options
| author | Alp Toker <alp@nuanti.com> | 2014-07-11 14:02:04 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2014-07-11 14:02:04 +0000 |
| commit | bc4d1a36047bae030871accdaf51c943304ef342 (patch) | |
| tree | b1f203db605ee7e81a10f4f69983c7d9542f14ac /llvm/lib/ExecutionEngine/RTDyldMemoryManager.cpp | |
| parent | 03f1e408dee68ff5a3cd9da49ebaa7d56a2b39d2 (diff) | |
| download | bcm5719-llvm-bc4d1a36047bae030871accdaf51c943304ef342.tar.gz bcm5719-llvm-bc4d1a36047bae030871accdaf51c943304ef342.zip | |
raw_svector_ostream: grow and reserve atomically
Including the scratch buffer size in the initial reservation eliminates the
subsequent malloc+move operation and offers a healthier constant growth with
less memory wastage.
When doing this, take care to avoid invalidating the source buffer.
llvm-svn: 212816
Diffstat (limited to 'llvm/lib/ExecutionEngine/RTDyldMemoryManager.cpp')
0 files changed, 0 insertions, 0 deletions

