I had left this as a TODO, but it turns out it wasn't complicated.
By specifying MAP_RESIZABLE, it allows us to keep the VMO which we
can then use for release purposes.
releasePagesToOS also had to be called the "proper" way, as Fuchsia
requires the Offset field to be correct. This has no impact on
non-Fuchsia platforms.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/scudo/standalone/secondary.h | ||
---|---|---|
81 | I'm assuming we're also okay now with zero-length arrays? |
Comment Actions
FYI I got to run the tests and some things are failing, I am looking into what could be wrong.
Comment Actions
I was wrong about the base paramater to use with releasePagesToOS on Fuchsia,
it's the base of the committed mapping, which is not the base of the reserved
mapping. So change that back to what it was.
Also fix 2 issues for tests to work on Fuchsia: include <set> and mark a static
variable as possibly unused since Fuchsia complains about it.
I'm assuming we're also okay now with zero-length arrays?