[jdk17u-dev] RFR: 8280872: Reorder code cache segments to improve code density

Evgeny Astigeevich eastigeevich at openjdk.org
Tue Sep 27 15:40:34 UTC 2022


A backport of reordering code cache segments from
[non-nmethod, non-profiled, profiled]
to
[profiled, non-nmethod, non-profiled]

AArch64 limits branch ranges to 128MB. Far jumps uses three instructions.
With the new order the aarch64 backend does not need far jumps to non-nmethods
for CodeCache sizes from 128M to 240MB.

The risk of changes is low. It only causes generated code reduction.

Tested with fastdebug and release builds:
- gtest: Passed
- tier1: Passed
- tier2: Passed

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

Commit messages:
 - Backport e524107a74d149354c505372e7b4a8af87d6ad02

Changes: https://git.openjdk.org/jdk17u-dev/pull/743/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=743&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8280872
  Stats: 203 lines in 7 files changed: 185 ins; 1 del; 17 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/743.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev pull/743/head:pull/743

PR: https://git.openjdk.org/jdk17u-dev/pull/743


More information about the jdk-updates-dev mailing list