This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Remove SANITIZER_AARCH64_VMA usage
ClosedPublic

Authored by zatrazz on Nov 27 2015, 5:08 AM.

Details

Summary

This patch complete removed SANITIZER_AARCH64_VMA definition and usage.
AArch64 ports now supports runtime VMA detection and instrumentation
for 39 and 42-bit VMA.

It also cleans up the pointer print and check on tsan by using the 'print_address'
function where required (instead of using the naked %p format).

Diff Detail

Event Timeline

zatrazz updated this revision to Diff 41293.Nov 27 2015, 5:08 AM
zatrazz retitled this revision from to [compiler-rt] Remove SANITIZER_AARCH64_VMA usage.
zatrazz updated this object.
zatrazz added reviewers: rengolin, samsonov, eugenis, dvyukov, pcc.
zatrazz added a subscriber: llvm-commits.
dvyukov added inline comments.Nov 27 2015, 5:30 AM
test/tsan/race_on_heap.cc
31

This is quite clumsy.

Please change print_format to always print "name=ptr\n" and so that name is function argument:

print_address("addr", p);

This will cover most of cases, and simplify the rest.

zatrazz updated this revision to Diff 41410.Nov 30 2015, 10:05 AM

Changes from previous version:

  • Rewrite print_address to take a variadic argument list (the addresses to print);
  • Adjust the tests to new print_address signature.
dvyukov accepted this revision.Nov 30 2015, 10:11 AM
dvyukov edited edge metadata.
This revision is now accepted and ready to land.Nov 30 2015, 10:11 AM
zatrazz closed this revision.Nov 30 2015, 11:57 AM