Page MenuHomePhabricator

[gwp-asan] Implement malloc_iterate.
ClosedPublic

Authored by eugenis on Thu, Jan 23, 4:17 PM.

Details

Summary

This is an Android-specific interface for iterating over all live
allocations in a memory range.

Diff Detail

Event Timeline

eugenis created this revision.Thu, Jan 23, 4:17 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptThu, Jan 23, 4:17 PM
Herald added subscribers: Restricted Project, mgrang, mgorny. · View Herald Transcript
hctim accepted this revision.Thu, Jan 23, 4:41 PM
hctim added inline comments.
compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
185

Nit: Cb

compiler-rt/lib/gwp_asan/guarded_pool_allocator.h
110
// Execute the callback `Cb()` for every allocation that lies between [Base, Base + Size)
113

Nit: Cb

This revision is now accepted and ready to land.Thu, Jan 23, 4:41 PM

Unit tests: unknown.

clang-tidy: unknown.

clang-format: unknown.

Build artifacts: diff.json, console-log.txt

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

eugenis updated this revision to Diff 240065.Thu, Jan 23, 5:01 PM
eugenis marked 3 inline comments as done.

address comments

Unit tests: unknown.

clang-tidy: unknown.

clang-format: unknown.

Build artifacts: diff.json, console-log.txt

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

This revision was automatically updated to reflect the committed changes.