[aarch64-port-dev ] RFR(S): 8248676: AArch64: Add workaround for LITable constructor
Andrew Haley
aph at redhat.com
Fri Jul 10 08:10:26 UTC 2020
On 09/07/2020 21:31, Ludovic Henry wrote:
> JBS: https://bugs.openjdk.java.net/browse/JDK-8248676
> Webrev: http://cr.openjdk.java.net/~burban/luhenry/8248676/webrev.00/
> Testing: jtreg:test/hotspot/jtreg:tier1, jtreg:test/jdk:tier1, jtreg:test/jdk:tier2, jtreg:test/langtools on Linux-AArch64, no regressions.
>
> This small fix is in the context of the larger support for Windows-AArch64. The attribute `__attribute__ ((constructor))` is not supported by MSVC, and the documented workaround is to allocate an empty static struct with a constructor. This patch only applies this workaround when compiling on Windows, and leaves other platforms unchanged.
Please take out the #ifdef WINDOWS: we can use portable C++ here on all
platforms. Thanks,
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the aarch64-port-dev
mailing list