RFR: 8303210: [linux, Windows] Make UseSystemMemoryBarrier available as product flag [v7]

Martin Doerr mdoerr at openjdk.org
Thu Mar 30 16:53:18 UTC 2023


> I'd like to enable UseSystemMemoryBarrier by default on supported Operating Systems in order to improve performance of thread state transitions (I/O, JNI, foreign function calls, JIT compiler threads, etc.). See JBS issue for more details.
> Unfortunately, the feature was not yet implemented on all platforms. I added the code, but need the platform maintainers to check if it can be used reliably (and ideally if the performance improves). It's easy to switch it off again in case of problems.
> 
> Update: Startup performance and some benchmarks on some platforms are impacted (see below). So, this PR no longer switches it on by default.

Martin Doerr has updated the pull request incrementally with one additional commit since the last revision:

  Move flag configuration and initialization to SystemMemoryBarrier and call it from parse_vm_init_args.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/12753/files
  - new: https://git.openjdk.org/jdk/pull/12753/files/adcc0cd6..55d9837a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12753&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12753&range=05-06

  Stats: 44 lines in 6 files changed: 14 ins; 28 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/12753.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/12753/head:pull/12753

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


More information about the hotspot-dev mailing list