Skip to content

Commit

Permalink
fixup! [scudo] Make local cache be agnostic to the type of node in fr…
Browse files Browse the repository at this point in the history
…eelist
  • Loading branch information
ChiaHungDuan committed Oct 9, 2023
1 parent ee31677 commit 1dad033
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler-rt/lib/scudo/standalone/primary32.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ template <typename Config> class SizeClassAllocator32 {
return 0;

const u16 Count = B->getCount();
DCHECK_GT(Count, 0U);
B->moveToArray(ToArray);

if (ClassId != SizeClassMap::BatchClassId)
Expand Down
1 change: 1 addition & 0 deletions compiler-rt/lib/scudo/standalone/primary64.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ template <typename Config> class SizeClassAllocator64 {
return 0;

const u16 Count = B->getCount();
DCHECK_GT(Count, 0U);
B->moveToArray(ToArray);

if (ClassId != SizeClassMap::BatchClassId)
Expand Down

0 comments on commit 1dad033

Please sign in to comment.