JDK-8253816 : Support macOS W^X
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,16
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: aarch64
  • Submitted: 2020-09-29
  • Updated: 2022-09-22
  • Resolved: 2021-03-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 8
11.0.15Fixed 17 b16Fixed 8u361Fixed
Description
https://developer.apple.com/documentation/apple_silicon/porting_just-in-time_compilers_to_apple_silicon?language=objc

On Apple Silicon, it will be impossible to have memory regions that are writable and executable at the same time.

We should investigate possibility to use pthread_jit_write_protect_np together with MAP_JIT (JDK-8234930)
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/715 Date: 2021-12-13 20:11:31 +0000
18-12-2021

Changeset: dbc9e4b5 Author: Anton Kozlov <akozlov@openjdk.org> Committer: Vladimir Kempik <vkempik@openjdk.org> Date: 2021-03-25 18:10:18 +0000 URL: https://git.openjdk.java.net/jdk/commit/dbc9e4b5
25-03-2021