RFR: JDK-8283326: Implement SafeFetch statically
Thomas Stuefe
stuefe at openjdk.java.net
Tue Apr 12 10:48:44 UTC 2022
On Tue, 12 Apr 2022 10:24:39 GMT, David Holmes <dholmes at openjdk.org> wrote:
> > How would this work? You would add a "#if defined(zero) && defined(aix) &&..." to safefetch_sigjmp.cpp?
> > I honestly find this less readable and grep-able than now...
>
> I missed the use of SAFEFETCH_METHOD_SIGSETJMP to control the compilation of safefetch_sigjmp.cpp, but that is the only define that you need. Posix systems are either setjmp or static the only file that needs to know that is safefetch_sigjmp.cpp.
That, and safefetch_static.cpp. Those two files contain the two variants of handle_safefetch().
-------------
PR: https://git.openjdk.java.net/jdk/pull/7865
More information about the hotspot-dev
mailing list