[PATCH] D15202: [SectionMemoryManager] Make better use of virtual memory

Keno Fischer via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 13:11:19 PST 2015


loladiro created this revision.
loladiro added a reviewer: lhames.
loladiro added a subscriber: llvm-commits.
loladiro set the repository for this revision to rL LLVM.

On Windows, the allocation granularity can be significantly larger than a page (64K), so with many small objects, just clearing the FreeMem list rapidly leaks quite a bit of virtual memory space (if not rss). Fix that by only removing those parts of the FreeMem blocks that overlap pages for which we are applying memory permissions, rather than dropping the FreeMem blocks entirely.

Repository:
  rL LLVM

http://reviews.llvm.org/D15202

Files:
  include/llvm/ExecutionEngine/SectionMemoryManager.h
  include/llvm/Support/Memory.h
  lib/ExecutionEngine/SectionMemoryManager.cpp
  lib/Support/Memory.cpp
  lib/Support/Unix/Memory.inc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15202.41792.patch
Type: text/x-patch
Size: 9541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151203/724d368b/attachment.bin>


More information about the llvm-commits mailing list