RFR: 8343957: Rename ObjectMonitor::owner_from() and JavaThread::_lock_id

Patricio Chilano Mateo pchilanomate at openjdk.org
Tue Dec 3 20:11:53 UTC 2024


Please review this small renaming patch. During the review of JDK-8338383 there were some comments about improving the naming for `ObjectMonitor::owner_from()` and `JavaThread::_lock_id`. These originate from the changes introduced to inflated monitors, where we now record the `java.lang.Thread.tid` of the owner in the ObjectMonitor's `_owner` field instead of a `JavaThread*`. I renamed `_lock_id` as `_monitor_owner_id` and `owner_from()` as `owner_id_from()`.

Thanks,
Patricio

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

Commit messages:
 - v1

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

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


More information about the hotspot-dev mailing list