[all-commits] [llvm/llvm-project] c0b8c5: [compiler-rt][memprof] clear histogram tail granul...

David CARLIER via All-commits all-commits at lists.llvm.org
Thu Jul 16 12:24:56 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c0b8c59b65afd268f286f56ef71f6433ac47dfd1
      https://github.com/llvm/llvm-project/commit/c0b8c59b65afd268f286f56ef71f6433ac47dfd1
  Author: David CARLIER <devnexen at gmail.com>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M compiler-rt/lib/memprof/memprof_allocator.cpp
    A compiler-rt/test/memprof/TestCases/memprof_histogram_tail_clear.cpp
    A compiler-rt/test/memprof/TestCases/memprof_nonhistogram_tail_clear.cpp

  Log Message:
  -----------
  [compiler-rt][memprof] clear histogram tail granule on allocation. (#208911)

ClearShadow rounded the size down, leaving the partial tail counter
(ceil(size/8)-th) uncleared, so a recycled chunk leaked a stale count
into the last histogram bucket. Round up instead.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list