[all-commits] [llvm/llvm-project] d9b574: [hwasan] Fix allocator_interface implementation

Vitaly Buka via All-commits all-commits at lists.llvm.org
Wed May 24 18:05:56 PDT 2023


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

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_allocator.cpp
    M compiler-rt/lib/hwasan/hwasan_allocator.h
    M compiler-rt/lib/hwasan/hwasan_thread.cpp
    M compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp

  Log Message:
  -----------
  [hwasan] 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/D151389




More information about the All-commits mailing list