[all-commits] [llvm/llvm-project] b3e428: [scudo] Fix insufficient blocks when pushing Batch...

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Mon Jun 26 15:44:18 PDT 2023


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

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

  Log Message:
  -----------
  [scudo] Fix insufficient blocks when pushing BatchClass blocks

`populateFreeListAndPopBatch` may return batch with single block. Merge
it with the reported free blocks and enqueue them together.

Reviewed By: cferris, fabio-d

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


  Commit: 01c02abc540d34b3627c19d7fc5405e35821a0df
      https://github.com/llvm/llvm-project/commit/01c02abc540d34b3627c19d7fc5405e35821a0df
  Author: Riley <robertsriley at google.com>
  Date:   2023-06-26 (Mon, 26 Jun 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp

  Log Message:
  -----------
  [scudo] Fix data leak in wrappers_c_test.cpp

In SmallAlign implemented deallocation for the pointers

Reviewed By: cferris, Chia-hungDuan

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


  Commit: 4cf35a85c77db42b524459fe019a34c7306ca359
      https://github.com/llvm/llvm-project/commit/4cf35a85c77db42b524459fe019a34c7306ca359
  Author: fernandosalas <fernandosalas at google.com>
  Date:   2023-06-26 (Mon, 26 Jun 2023)

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

  Log Message:
  -----------
  [scudo] Secondary Cache Dump

Dumped some basic info about what is being cached and about the cache
itself. Output of test below:

...
Stats: MapAllocatorCache: EntriesCount: 33, MaxEntriesCount: 64, MaxEntrySize: 1048576
StartBlockAddress: 0x6d342c1000, EndBlockAddress: 0x6d342d2000, BlockSize: 69632
StartBlockAddress: 0x6fc45ff000, EndBlockAddress: 0x6fc462f000, BlockSize: 196608
...

Reviewed By: Chia-hungDuan

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


Compare: https://github.com/llvm/llvm-project/compare/6a6db74b7713...4cf35a85c77d


More information about the All-commits mailing list