On Tue, 1 Feb 2022 11:05:46 GMT, Alan Hayward <d...@openjdk.java.net> wrote:
>> src/hotspot/cpu/aarch64/vm_version_aarch64.cpp line 429: >> >>> 427: #else >>> 428: warning("UseROPProtection specified, but not supported in the >>> VM."); >>> 429: #endif >> >> If we issue these warnings should `_rop_protection` still be set true? > > As per this conversation: > https://github.com/openjdk/jdk/pull/6334#discussion_r791722292 > > The idea was, the user is explicitly asking for asking for pac-ret so we > should honour that. Whereas standard would only enable what is supported for > that system. But we can't honour that because it is not supported. Further, the suggestion in the referenced discussion seemed to be based on the assumption that doing so would be harmless because it is NOP based, but you have indicated that may not be the case and so it may actually lead to a crash! ------------- PR: https://git.openjdk.java.net/jdk/pull/6334