HomePhabricator

[scudo][standalone] Introduce the Secondary allocator

Authored by cryptoad on Apr 24 2019, 7:20 AM.

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

llvm-svn: 359097

Details

Committed
cryptoadApr 24 2019, 7:20 AM
Reviewer
morehouse
Differential Revision
D60787: [scudo][standalone] Introduce the Secondary allocator
Parents
rG47621d7c8935: [AMDGPU][MC] Parser cleanup and refactoring
Branches
Unknown
Tags
Unknown