From 925201613a92897de9019c1b5fd0199622820012 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 5 Aug 2015 15:17:59 +0000 Subject: [tsan] Enable tsan for aarch64 This patch enabled TSAN for aarch64 with 39-bit VMA layout. As defined by tsan_platform.h the layout used is: 0000 4000 00 - 0200 0000 00: main binary 2000 0000 00 - 4000 0000 00: shadow memory 4000 0000 00 - 5000 0000 00: metainfo 5000 0000 00 - 6000 0000 00: - 6000 0000 00 - 6200 0000 00: traces 6200 0000 00 - 7d00 0000 00: - 7d00 0000 00 - 7e00 0000 00: heap 7e00 0000 00 - 7fff ffff ff: modules and main thread stack Which gives it about 8GB for main binary, 4GB for heap and 8GB for modules and main thread stack. Most of tests are passing, with the exception of: * ignore_lib0, ignore_lib1, ignore_lib3 due a kernel limitation for no support to make mmap page non-executable. * longjmp tests due missing specialized assembly routines. These tests are xfail for now. The only tsan issue still showing is: rtl/TsanRtlTest/Posix.ThreadLocalAccesses Which still required further investigation. The test is disable for aarch64 for now. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@244055 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tsan/test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/tsan/test.h') diff --git a/test/tsan/test.h b/test/tsan/test.h index 4e877f6d8..b441ba13d 100644 --- a/test/tsan/test.h +++ b/test/tsan/test.h @@ -40,7 +40,7 @@ void print_address(void *address) { // to the format used in the diagnotic message. #ifdef __x86_64__ fprintf(stderr, "0x%012lx", (unsigned long) address); -#elif defined(__mips64) +#elif defined(__mips64) || defined(__aarch64__) fprintf(stderr, "0x%010lx", (unsigned long) address); #endif } -- cgit v1.2.3