[all-commits] [llvm/llvm-project] 657d29: [scudo] Simplify markFreeBlocks
ChiaHungDuan via All-commits
all-commits at lists.llvm.org
Tue Mar 7 13:56:11 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 657d297a92aed929d37c8d7b148a6e848bc182df
https://github.com/llvm/llvm-project/commit/657d297a92aed929d37c8d7b148a6e848bc182df
Author: Chia-hung Duan <chiahungduan at google.com>
Date: 2023-03-07 (Tue, 07 Mar 2023)
Changed paths:
M compiler-rt/lib/scudo/standalone/primary32.h
M compiler-rt/lib/scudo/standalone/primary64.h
M compiler-rt/lib/scudo/standalone/release.h
M compiler-rt/lib/scudo/standalone/tests/release_test.cpp
Log Message:
-----------
[scudo] Simplify markFreeBlocks
With memory group, we always mark the free blocks from the same region.
Therefore, we don't need to calculate the offset from base and determine
the region index. Also improve the way we deal with the last block in
the region so that the loop body is simpler.
Reviewed By: cferris
Differential Revision: https://reviews.llvm.org/D143303
More information about the All-commits
mailing list