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). ------------- Commit messages: - 8390949: Remove displaced-mark related code from SA agent Changes: https://git.openjdk.org/jdk/pull/32758/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32758&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8390949 Stats: 50 lines in 2 files changed: 10 ins; 30 del; 10 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
