RFR: 8324824: AArch64: Detect Ampere-1B core and update default options for Ampere CPUs

Patrick Zhang qpzhang at openjdk.org
Tue Feb 6 07:23:04 UTC 2024


Added CPU detection for Ampere-1B, and updated the default options for AmpereOne, Ampere-1A/1B to have `-XX:+UseSIMDForMemoryOps` and `-XX:OnSpinWaitInst=isb -XX:OnSpinWaitInstCount=2`.

Tests done:
1. GitHub Actions (GHA) sanity tests: https://github.com/cnqpzhang/jdk/actions/runs/7786881426
2. OpenJDK bundled JMH, `make run-test TEST="jtreg:hotspot/jtreg/compiler/onSpinWait*"` , `make run-test TEST="micro:ThreadOnSpinWait*"`, no issue found, and `ThreadOnSpinWaitProducerConsumer.trial` showed ~3x better scores (us/op).
3. Jtreg tier1/tier2 sanity check on AmpereOne AArch64 platforms, Ampere-1A systems as well, no new issues found.

Signed-off-by: Patrick Zhang [patrick at os.amperecomputing.com](mailto:patrick at os.amperecomputing.com)

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

Commit messages:
 - 8324824: AArch64: Detect Ampere-1B core and update default options for Ampere CPUs

Changes: https://git.openjdk.org/jdk/pull/17722/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17722&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8324824
  Stats: 12 lines in 2 files changed: 9 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/17722.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17722/head:pull/17722

PR: https://git.openjdk.org/jdk/pull/17722


More information about the hotspot-dev mailing list