[all-commits] [llvm/llvm-project] 0f1a92: [scudo] Deallocate the AllocatorRingBuffer too in ...

fabio-d via All-commits all-commits at lists.llvm.org
Tue May 16 13:09:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f1a92ba308a20dd4c790843191e3b642e90a9f3
      https://github.com/llvm/llvm-project/commit/0f1a92ba308a20dd4c790843191e3b642e90a9f3
  Author: Fabio D'Urso <fdurso at google.com>
  Date:   2023-05-16 (Tue, 16 May 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/combined.h

  Log Message:
  -----------
  [scudo] Deallocate the AllocatorRingBuffer too in unmapTestOnly

The AllocatorRingBuffer is allocated dynamically when Allocator is
initialized. This patch adds a corresponding deinitialization call in
unmapTestOnly, to avoid running out of virtual memory if the tests are run
a large number of times on memory-constrained platforms.

Reviewed By: Chia-hungDuan

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




More information about the All-commits mailing list