[SectionMemoryManager] Don't just drop the RO free list
authorKeno Fischer <kfischer@college.harvard.edu>
Sun, 10 Jan 2016 18:17:12 +0000 (18:17 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Sun, 10 Jan 2016 18:17:12 +0000 (18:17 +0000)
commit1f644cd56aa74ab04b02d7415e940a7be9e6f39e
treec39e76a2d2884e062af82272ba6bac257e6f454e
parentd046f2035113338423c43688255099a0433ce683
[SectionMemoryManager] Don't just drop the RO free list

In r255760, I optimized the SectionMemoryManager to make better use
of virtual memory on platforms where the allocation granularity was
bigger than the protection granularity. As part of this, fixing up
the free list became more complicated and was moved into
`applyMemoryGroupPermissions`. Unfortunately, I forgot to actually
remove the call that drops the free list for RO memory (I did
remove the corresponding one for RX memory), defeating the whole
optimization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257293 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/SectionMemoryManager.cpp