aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ProcessTest.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-01-04 22:35:45 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-01-04 22:35:45 +0000
commit83d5d19aea3a5587adce5eb2190f0e18b8c45453 (patch)
tree60fbc841358bf63d3049e7a69f001365861fa528 /llvm/unittests/Support/ProcessTest.cpp
parent4ccabc1da94f6da9d9a49c0a5020b309aced67bf (diff)
downloadllvm-83d5d19aea3a5587adce5eb2190f0e18b8c45453.zip
llvm-83d5d19aea3a5587adce5eb2190f0e18b8c45453.tar.gz
llvm-83d5d19aea3a5587adce5eb2190f0e18b8c45453.tar.bz2
Special case Recycler::clear(BumpPtrAllocator).
A BumpPtrAllocator has an empty Deallocate() method, but Recycler::clear() would still call it for every single object ever allocated, bringing all those objects into cache. As a bonus, iplist::remove() will also write to the Prev/Next pointers on all the objects, so all those cache lines have to be written back to RAM before the pages are given back to the OS. Stop wasting time and memory bandwith by using the new clearAndLeakUnsafely() function to jettison all the recycled objects. llvm-svn: 171541
Diffstat (limited to 'llvm/unittests/Support/ProcessTest.cpp')
0 files changed, 0 insertions, 0 deletions