[all-commits] [llvm/llvm-project] 2f08a0: [scudo] Support importing custom configuration

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Fri Jun 2 09:30:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f08a08f6102898c862802401c36fe4d33f590ef
      https://github.com/llvm/llvm-project/commit/2f08a08f6102898c862802401c36fe4d33f590ef
  Author: Chia-hung Duan <chiahungduan at google.com>
  Date:   2023-06-02 (Fri, 02 Jun 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/allocator_config.h
    M compiler-rt/lib/scudo/standalone/combined.h
    M compiler-rt/lib/scudo/standalone/primary32.h
    M compiler-rt/lib/scudo/standalone/primary64.h
    M compiler-rt/lib/scudo/standalone/secondary.h
    M compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
    M compiler-rt/lib/scudo/standalone/tests/primary_test.cpp
    M compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp

  Log Message:
  -----------
  [scudo] Support importing custom configuration

To define custom allocation, you only need to put the configuration in
custom_scudo_config.h and define two required aliases, then you will be
switched to the customized config and the tests will also run with your
configuration.

In this CL, we also have a minor refactor the structure of
configuration. Now the essential fields are put under the associated
hierarchy and which will make the defining new configuration easier.

Reviewed By: cferris

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




More information about the All-commits mailing list