RFR: CODETOOLS-7903290: jcstress: Inline Counter.record(R) method

Aleksey Shipilev shade at openjdk.org
Thu Sep 8 09:36:15 UTC 2022


Currently, jcstress uses a "convenience" method on a hot path, which delegates to the real one. This relies on JIT compilers to inline it through. We don't have to rely on this, and can call the full method directly.

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

Commit messages:
 - Fix

Changes: https://git.openjdk.org/jcstress/pull/120/files
 Webrev: https://webrevs.openjdk.org/?repo=jcstress&pr=120&range=00
  Issue: https://bugs.openjdk.org/browse/CODETOOLS-7903290
  Stats: 18 lines in 3 files changed: 0 ins; 10 del; 8 mod
  Patch: https://git.openjdk.org/jcstress/pull/120.diff
  Fetch: git fetch https://git.openjdk.org/jcstress pull/120/head:pull/120

PR: https://git.openjdk.org/jcstress/pull/120


More information about the jcstress-dev mailing list