Skip to content

Commit 24477f8

Browse files
thurstondyuxuanchen1997
authored andcommitted
[NFCI][scudo] Remove unused variable 'MaxCount' (#100201)
Summary: Fixes "error: unused variable 'MaxCount' [-Werror,-Wunused-variable]", which is no longer used after #99409 Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251627
1 parent 2cf0734 commit 24477f8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler-rt/lib/scudo/standalone/secondary.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ template <typename Config> class MapAllocatorCache {
332332
bool retrieve(Options Options, uptr Size, uptr Alignment, uptr HeadersSize,
333333
LargeBlock::Header **H, bool *Zeroed) EXCLUDES(Mutex) {
334334
const uptr PageSize = getPageSizeCached();
335-
const u32 MaxCount = atomic_load_relaxed(&MaxEntriesCount);
336335
// 10% of the requested size proved to be the optimal choice for
337336
// retrieving cached blocks after testing several options.
338337
constexpr u32 FragmentedBytesDivisor = 10;
@@ -449,7 +448,6 @@ template <typename Config> class MapAllocatorCache {
449448
Quarantine[I].invalidate();
450449
}
451450
}
452-
const u32 MaxCount = atomic_load_relaxed(&MaxEntriesCount);
453451
for (u32 I = LRUHead; I != CachedBlock::InvalidEntry; I = Entries[I].Next) {
454452
Entries[I].MemMap.setMemoryPermission(Entries[I].CommitBase,
455453
Entries[I].CommitSize, 0);

0 commit comments

Comments
 (0)