This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] Do not memset allocation if it comes from the secondary allocator
ClosedPublic

Authored by leonardchan on Apr 26 2023, 12:58 PM.

Details

Summary

The secondary allocator calls mmap which should return zero-inited pages, so we don't need to explicitly memset it with zeros. This is similar to what asan's calloc does.

Diff Detail

Event Timeline

leonardchan created this revision.Apr 26 2023, 12:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2023, 12:58 PM
Herald added a subscriber: Enna1. · View Herald Transcript
leonardchan requested review of this revision.Apr 26 2023, 12:58 PM
This revision is now accepted and ready to land.Apr 26 2023, 1:02 PM