RFR: 8187227: Zero should use compiler built-ins for atomics on linux-m68k
John Paul Adrian Glaubitz
glaubitz at physik.fu-berlin.de
Thu Nov 23 14:19:24 UTC 2017
On 11/23/2017 03:15 PM, Andrew Haley wrote:
> Take care: it's not absolutely guaranteed that the GCC builtins are
> correct for HotSpot. Don't change anything that isn't broken.
I have tested them, both for m68k and ARMv4T, and both work fine.
Also, looking at what gcc does for ARM:
> https://github.com/gcc-mirror/gcc/blob/1cb6c2eb3b8361d850be8e8270c597270a1a7967/libgcc/config/arm/linux-atomic.c#L27
and what OpenJDK does for ARM:
> http://hg.openjdk.java.net/jdk/hs/file/ab188c22d4b6/src/hotspot/os_cpu/linux_zero/atomic_linux_zero.hpp#l101
it seems both code is identical as both call the kernel helper
for cmpxchg from the VDSO.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz at debian.org
`. `' Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
More information about the hotspot-dev
mailing list