Atomic
Justin King
jcking at google.com
Mon Mar 20 15:42:58 UTC 2023
While messing around with seeing if ThreadSanitizer would be useful in
Hotspot, I rewrote runtime/atomic.hpp using compiler intrinsics (__atomic_*
on GCC/Clang/XLC, interlocked for MSVC) instead of inline assembly. Inline
assembly doesn't get instrumented very well and the compiler cannot
optimize it very well. Is there any want for replacing the inline assembly
with compiler intrinsics, regardless of ThreadSanitizer? They also have
intrinsics that can be used to build optimized implementations of parallel
bit set manipulation as well.
--
[image: Google Logo]
Justin King
Software Engineer
jcking at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-runtime-dev/attachments/20230320/261c1add/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3999 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://mail.openjdk.org/pipermail/hotspot-runtime-dev/attachments/20230320/261c1add/smime-0001.p7s>
More information about the hotspot-runtime-dev
mailing list