[all-commits] [llvm/llvm-project] 94407e: [scudo] Change configuration for Trusty, use mmap()

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Mon Jun 5 11:28:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94407e1bba9807193afde61c56b6125c0fc0b1d1
      https://github.com/llvm/llvm-project/commit/94407e1bba9807193afde61c56b6125c0fc0b1d1
  Author: Dmitriy Filchenko <dmitriyf at google.com>
  Date:   2023-06-05 (Mon, 05 Jun 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/allocator_config.h
    M compiler-rt/lib/scudo/standalone/size_class_map.h
    M compiler-rt/lib/scudo/standalone/trusty.cpp

  Log Message:
  -----------
  [scudo] Change configuration for Trusty, use mmap()

Trusty runs in memory constrained environments, with many apps
having only one page (4KB) of heap memory available. However, we
still want to mmap() multiples of PAGE_SIZE at a time.

Additionally, switch Scudo from using sbrk() to mmap().

Reviewed By: cferris

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




More information about the All-commits mailing list