This is an archive of the discontinued LLVM Phabricator instance.

[gwp-asan] Implement malloc_iterate.
ClosedPublic

Authored by eugenis on Jan 23 2020, 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.Jan 23 2020, 4:17 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 23 2020, 4:17 PM
Herald added subscribers: Restricted Project, mgrang, mgorny. · View Herald Transcript
hctim accepted this revision.Jan 23 2020, 4:41 PM
hctim added inline comments.
compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
183

Nit: Cb

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

Nit: Cb

This revision is now accepted and ready to land.Jan 23 2020, 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.Jan 23 2020, 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.