Skip to content

Commit 6ffc445

Browse files
author
Wael Yehia
committed
[PGO][AIX] Disable multi-process continuous mode test in 32-bit
In PGO continuous mode, we mmap the profile file into shared memory, which allows multiple processes to be updating the same memory. The -fprofile-update=atomic option forces the counter increments to be atomic, but the counter size is always 64-bit (in -m32 and -m64), so in 32-bit mode the atomic operations are function calls to libatomic.a and these function calls use locks. The lock based libatomic.a functions are per-process, so two processes will race on the same shared memory because each will acquire their own lock.
1 parent f325e4b commit 6ffc445

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/test/profile/ContinuousSyncMode/online-merging.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: continuous-mode
2+
// UNSUPPORTED: powerpc-{{.*}}
23

34
// Test the online merging mode (%m) along with continuous mode (%c).
45
//

0 commit comments

Comments
 (0)