[all-commits] [llvm/llvm-project] 3a713a: [SanitizerCommon] Reduce wasting memory in LowLeve...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Tue Dec 10 21:53:18 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a713ae5fa64a0b2043bd6748b87d4ba7f7c2fce
      https://github.com/llvm/llvm-project/commit/3a713ae5fa64a0b2043bd6748b87d4ba7f7c2fce
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2019-12-11 (Wed, 11 Dec 2019)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_allocator.cpp
    M compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cpp

  Log Message:
  -----------
  [SanitizerCommon] Reduce wasting memory in LowLevelAllocator.

MmapOrDie allocates memory multiple to page size. LowLevelAllocator
should use all that memory for the internal buffer because there are
chances that subsequent requests may be small enough to fit in that
space.

Differential Revision: https://reviews.llvm.org/D71275




More information about the All-commits mailing list