HomePhabricator

[scudo][standalone] Introduce the Secondary allocator

Description

[scudo][standalone] Introduce the Secondary allocator

Summary:
The Secondary allocator wraps the platform allocation primitives. It is
meant to be used for larger sizes that the Primary can't fullfill, as
it will be slower, and sizes are multiple of the system page size.

This also changes some of the existing code, notably the opaque
platform data being passed to the platform specific functions: we can
shave a couple of syscalls on Fuchsia by storing additional data (this
addresses a TODO).

Reviewers: eugenis, vitalybuka, hctim, morehouse

Reviewed By: morehouse

Subscribers: mgorny, delcypher, jfb, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D60787

Details

Committed
cryptoadApr 24 2019, 7:20 AM
Reviewer
morehouse
Differential Revision
D60787: [scudo][standalone] Introduce the Secondary allocator
Branches
Unknown
Tags
Unknown