RFR: 8320276: Improve class initialization barrier in TemplateTable::_new [v2]

Matias Saavedra Silva matsaave at openjdk.org
Wed Dec 20 19:53:10 UTC 2023


> The class initialization barrier in TemplateTable::_new fast path check ensures that the class being instantiated is fully initialized. It can be improved by introducing additional fast path check when current thread is initializer thread as MacroAssembler::clinit_barrier() does. It avoids repeated calls into interpreter runtime for classes being initialized. This patch adds a the optimization for x86 and aarch64. Verified with tier 1-5 tests.

Matias Saavedra Silva has updated the pull request incrementally with one additional commit since the last revision:

  David comments

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/17006/files
  - new: https://git.openjdk.org/jdk/pull/17006/files/924f3e76..dc9e5ae3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=17006&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17006&range=00-01

  Stats: 8 lines in 1 file changed: 0 ins; 1 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/17006.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17006/head:pull/17006

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


More information about the hotspot-dev mailing list