This is an archive of the discontinued LLVM Phabricator instance.

Revert "Revert "[scudo] Fix the calculating of memory group usage""
ClosedPublic

Authored by Chia-hungDuan on Oct 28 2022, 3:20 PM.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Oct 28 2022, 3:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 28 2022, 3:20 PM
Herald added a subscriber: Enna1. · View Herald Transcript
Chia-hungDuan requested review of this revision.Oct 28 2022, 3:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 28 2022, 3:20 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Fix arguments order while calling batchGroupBase()

Chia-hungDuan added inline comments.
compiler-rt/lib/scudo/standalone/primary64.h
737

The arguments order was wrong in last CL

Chia-hungDuan added inline comments.Oct 28 2022, 6:17 PM
compiler-rt/lib/scudo/standalone/primary64.h
737

It was caught by the DCHECK_GE above but somehow I tested it on non-debug build.

phosek added a subscriber: phosek.Oct 28 2022, 10:36 PM
phosek added inline comments.
compiler-rt/lib/scudo/standalone/primary64.h
372

This wasn't in rG69fe7abb393ba7d6ee9c8ff1429316845b5bad37, is it intended?

Chia-hungDuan added inline comments.Oct 28 2022, 10:48 PM
compiler-rt/lib/scudo/standalone/primary64.h
372

I just noticed that it will be better to align the style above (make the implicit casting explicitly) so I added it in this one (which is somehow related). It's not a fix of correctness.

phosek accepted this revision.Oct 28 2022, 11:09 PM

LGTM

This revision is now accepted and ready to land.Oct 28 2022, 11:09 PM
This revision was landed with ongoing or failed builds.Oct 28 2022, 11:27 PM
This revision was automatically updated to reflect the committed changes.