RFR: 8351655: Optimize ObjectMonitor::unlink_after_acquire()

Fredrik Bredberg fbredberg at openjdk.org
Tue Mar 18 13:37:45 UTC 2025


This PR implements an optimization of `ObjectMonitor::unlink_after_acquire()`. If it's possible it only converts the first part (the singly linked part) of the `entry_list` into a doubly linked list and leave the _entry_list_tail pointer untouched. 

It has passed tier1-tier8 tests.

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

Commit messages:
 - Fixed two typos, and moved one assert()
 - 8351655: Optimize ObjectMonitor::unlink_after_acquire()

Changes: https://git.openjdk.org/jdk/pull/24078/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24078&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8351655
  Stats: 78 lines in 2 files changed: 56 ins; 14 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/24078.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24078/head:pull/24078

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


More information about the hotspot-runtime-dev mailing list