aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/PackedVersion.cpp
diff options
context:
space:
mode:
authorWael Yehia <wyehia@ca.ibm.com>2023-09-06 19:01:41 -0400
committerWael Yehia <wyehia@ca.ibm.com>2023-09-07 17:46:41 +0000
commit11d5c7bd289cb3a3bb326871ae8f37dafa49ed43 (patch)
treec5167512d0a9ae280c062210e033e42d93c6878e /llvm/lib/TextAPI/PackedVersion.cpp
parent99e70cc3a56b02ba556270fa205c04ca77de6444 (diff)
downloadllvm-11d5c7bd289cb3a3bb326871ae8f37dafa49ed43.zip
llvm-11d5c7bd289cb3a3bb326871ae8f37dafa49ed43.tar.gz
llvm-11d5c7bd289cb3a3bb326871ae8f37dafa49ed43.tar.bz2
[AIX] Add threadId and use nanosecond timestamp in sinit/sterm symbols
With ThinLTO, when compiling SPEC 2017 omnetpp_r with -threads=4, two small modules can end up with the same timestamp in their sinit symbols when calculating time in seconds, creating duplicate definitions. This patch uses a timestamp in nanoseconds. Because the race can be between threads, embed the thread ID as well. Reviewed By: xingxue, daltenty Differential Revision: https://reviews.llvm.org/D159319
Diffstat (limited to 'llvm/lib/TextAPI/PackedVersion.cpp')
0 files changed, 0 insertions, 0 deletions