Bug 1958750 - Fix some linting errors in mozjemalloc.cpp r=glandium DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D244541
This commit is contained in:
Paul Bone
2025-04-16 05:56:51 +00:00
parent 3f7df7a20f
commit 13aec57f05

View File

@@ -1655,10 +1655,11 @@ class ArenaCollection {
MutexAutoLock lock(mLock);
mDefaultMaxDirtyPageModifier = aModifier;
for (auto* arena : iter()) {
// We can only update max-dirty for main-thread-only arenas from the main thread.
// We can only update max-dirty for main-thread-only arenas from the
// main thread.
if (!arena->IsMainThreadOnly() || IsOnMainThreadWeak()) {
arena->UpdateMaxDirty();
}
}
}
}
}
@@ -6097,7 +6098,8 @@ inline void MozJemalloc::jemalloc_reset_small_alloc_randomization(
MutexAutoLock lock(gArenas.mLock);
for (auto* arena : gArenas.iter()) {
// We can only initialize the PRNG for main-thread-only arenas from the main thread.
// We can only initialize the PRNG for main-thread-only arenas from the main
// thread.
if (!arena->IsMainThreadOnly() || gArenas.IsOnMainThreadWeak()) {
arena->ResetSmallAllocRandomization();
}