[compiler-rt] b31771c - [scudo] Remove dead code in pushBlocksImpl (NFC)
Chia-hung Duan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 25 08:29:46 PDT 2023
Author: Chia-hung Duan
Date: 2023-07-25T15:24:57Z
New Revision: b31771cb575d47d842ec8d46604b0acc564add04
URL: https://github.com/llvm/llvm-project/commit/b31771cb575d47d842ec8d46604b0acc564add04
DIFF: https://github.com/llvm/llvm-project/commit/b31771cb575d47d842ec8d46604b0acc564add04.diff
LOG: [scudo] Remove dead code in pushBlocksImpl (NFC)
BatchClassId will go through pushBatchClassBlocks
Reviewed By: cferris
Differential Revision: https://reviews.llvm.org/D156148
Added:
Modified:
compiler-rt/lib/scudo/standalone/primary64.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/primary64.h b/compiler-rt/lib/scudo/standalone/primary64.h
index fd7a1f9e80cdec..f29c6c146bed18 100644
--- a/compiler-rt/lib/scudo/standalone/primary64.h
+++ b/compiler-rt/lib/scudo/standalone/primary64.h
@@ -743,16 +743,6 @@ template <typename Config> class SizeClassAllocator64 {
Region->FreeListInfo.PushedBlocks += Size;
BatchGroup *Cur = Region->FreeListInfo.BlockList.front();
- if (ClassId == SizeClassMap::BatchClassId) {
- if (Cur == nullptr) {
- // Don't need to classify BatchClassId.
- Cur = CreateGroup(/*CompactPtrGroupBase=*/0);
- Region->FreeListInfo.BlockList.push_front(Cur);
- }
- InsertBlocks(Cur, Array, Size);
- return;
- }
-
// In the following, `Cur` always points to the BatchGroup for blocks that
// will be pushed next. `Prev` is the element right before `Cur`.
BatchGroup *Prev = nullptr;
More information about the llvm-commits
mailing list