This is an archive of the discontinued LLVM Phabricator instance.

[LSan] Make LSan allocator allocator_may_return_null compliant
ClosedPublic

Authored by alekseyshl on Jun 29 2017, 4:22 PM.

Details

Summary

An attempt to reland D34786 (which caused bot failres on Mac), now with
properly intercepted operators new() and delete().

LSan allocator used to always return nullptr on too big allocation requests
(the definition of "too big" depends on platform and bitness), now it
follows policy configured by allocator_may_return_null flag

Diff Detail

Repository
rL LLVM

Event Timeline

alekseyshl created this revision.Jun 29 2017, 4:22 PM
eugenis accepted this revision.Jun 29 2017, 5:26 PM

How did it work on Mac before?

This revision is now accepted and ready to land.Jun 29 2017, 5:26 PM

How did it work on Mac before?

I guess operator new was calling the intercepted malloc.

This revision was automatically updated to reflect the committed changes.