[all-commits] [llvm/llvm-project] c46bc0: [lsan] Fix allocator_interface implementation

Vitaly Buka via All-commits all-commits at lists.llvm.org
Wed May 24 13:27:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c46bc0d3e73230302ce53ebb52be55601ad8f7f6
      https://github.com/llvm/llvm-project/commit/c46bc0d3e73230302ce53ebb52be55601ad8f7f6
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2023-05-24 (Wed, 24 May 2023)

  Changed paths:
    M compiler-rt/lib/lsan/lsan_allocator.cpp
    M compiler-rt/lib/lsan/lsan_allocator.h
    M compiler-rt/lib/lsan/lsan_thread.cpp
    M compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp

  Log Message:
  -----------
  [lsan] Fix allocator_interface implementation

__sanitizer_get_current_allocated_bytes had as body, but allocator
caches were not registered to collect stats. It's done by
SizeClassAllocator64LocalCache::Init().

Reviewed By: thurston

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




More information about the All-commits mailing list