RFR: 8288023: AArch64: disable PAC-RET when preview is enabled

Ron Pressler rpressler at openjdk.java.net
Thu Jun 9 09:31:32 UTC 2022


On Thu, 9 Jun 2022 08:26:38 GMT, Nick Gasson <ngasson at openjdk.org> wrote:

> PAC-RET is not currently compatible with the continuation freeze/thaw mechanism used by virtual threads, and additionally
> `-XX:UseBranchProtection=pac-ret` enables `PreserveFramePointer` which prevents the use of the continuation thaw fast-path (about 15% slower for the "Skynet" JMH benchmark).  So for now just disable PAC when `--enable-preview` was also passed.
> 
> See some earlier discussion here: #9067

Looks good. Thank you!

-------------

Marked as reviewed by rpressler (Author).

PR: https://git.openjdk.java.net/jdk/pull/9102


More information about the hotspot-dev mailing list