This is an archive of the discontinued LLVM Phabricator instance.

Move valid caller-pc checks out of platform-specific checks
ClosedPublic

Authored by fjricci on Apr 17 2017, 11:07 AM.

Details

Summary

ProcessPlatformSpecificAllocations for linux leak sanitizer iterated over
memory chunks and ran two checks concurrently:

  1. Ensured the pc was valid
  2. Checked whether it was a linker allocation

All platforms will need the valid pc check, so it is moved out of the platform-
specific file. To prevent code and logic duplication, the linker allocation
check is moved as well, with the name of the linker supplied by the platform-specific
module. In cases where we don't need to check for linker allocations (ie Darwin),
this name will be a nullptr, and we'll only run the caller pc checks.

Diff Detail

Repository
rL LLVM

Event Timeline

fjricci created this revision.Apr 17 2017, 11:07 AM
alekseyshl accepted this revision.Apr 18 2017, 1:46 PM
This revision is now accepted and ready to land.Apr 18 2017, 1:46 PM
This revision was automatically updated to reflect the committed changes.