> This PR removes displaced-mark related code from the Serviceability Agent, 
> which has become obsolete since 
> [JDK-8389325](https://bugs.openjdk.org/browse/JDK-8389325) removed the 
> `UseObjectMonitorTable` flag.
> 
> It also aligns the SA's mark-word related `printOn()` and `hasMonitor()` 
> functions to their respective C++ functions, `markWord::print_on()` and 
> `markWord::has_monitor()`.
> 
> Because the displaced-mark related code was removed, the 
> `identityHashValueFor()` has been reduced to one line, just returning the 
> hash code directly from the object's mark-word.
> 
> Passes tier1-3 on supported platforms. I also successfully ran 
> `TEST="hotspot/jtreg/serviceability/sa"` on my local machine.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Fredrik Bredberg has updated the pull request incrementally with one additional 
commit since the last revision:

  Updated after review

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/32758/files
  - new: https://git.openjdk.org/jdk/pull/32758/files/f1e1bc64..e55bb1ca

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

  Stats: 8 lines in 2 files changed: 0 ins; 8 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/32758.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32758/head:pull/32758

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

Reply via email to