Instead of going through all those trailing blocks, just count the
number and increase the counter at once.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Are there tests that already cover the modified code?
| compiler-rt/lib/scudo/standalone/release.h | ||
|---|---|---|
| 499–509 | Is this comment still valid? It doesn't seem like the code marks anything unless there are some trailing blocks. | |
Comment Actions
Add more comment
| compiler-rt/lib/scudo/standalone/release.h | ||
|---|---|---|
| 499–509 | Yes, we are still handling the trailing blocks (which is the "pretend" blocks mentioned in the comment). The difference is we don't iterate each trailing block. Added more comments | |
Is this comment still valid? It doesn't seem like the code marks anything unless there are some trailing blocks.