W^X adds a substantial overhead, up to 50ns in some cases, even on a fast CPU. By only changing W^X mode when it is necessary, we can remove 90% of the W^X switches.
- relates to
-
JDK-8328306 AArch64: MacOS lazy JIT "write xor execute" switching
-
- In Progress
-
-
JDK-8307817 AARCH64: make macOS W^X locking more fine grained
-
- Closed
-