This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizers] Call NanoTime() conditionally.
ClosedPublic

Authored by alekseyshl on Nov 3 2017, 4:21 PM.

Details

Summary

Call NanoTime() in primary 64 bit allocator only when necessary,
otherwise the unwarranted syscall causes problems in sandbox environments.
ReleaseToOSIntervalMs() conditional allows them to turn the feature off
with allocator_release_to_os_interval_ms=-1 flag.

Diff Detail

Repository
rL LLVM

Event Timeline

alekseyshl created this revision.Nov 3 2017, 4:21 PM
eugenis accepted this revision.Nov 3 2017, 4:29 PM
This revision is now accepted and ready to land.Nov 3 2017, 4:29 PM
This revision was automatically updated to reflect the committed changes.