This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Implement __sanitizer_get_allocated_size_fast
ClosedPublic

Authored by Northbadge on May 24 2023, 12:16 PM.

Details

Summary

The primary motivation for this change is to allow FreeHooks to obtain
the allocated size of the pointer being freed in a fast, efficient manner.

Diff Detail

Event Timeline

Northbadge created this revision.May 24 2023, 12:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 12:16 PM
Herald added a subscriber: Enna1. · View Herald Transcript

Light cleanup

Northbadge published this revision for review.May 24 2023, 12:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 12:43 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.May 24 2023, 5:08 PM

Thanks, LGTM. Could you please update also compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp?

This revision is now accepted and ready to land.May 24 2023, 5:08 PM

Thanks, LGTM. Could you please update also compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp?

Thanks for the review! I don't see a compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp though?

Add missing semicolons

Synced to tip; Found the new test & updated it. Will let build bots run for a bit.