On Tue, 8 Sep 2026 09:34:09 GMT, Fredrik Bredberg <[email protected]> wrote:
> 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). This pull request has now been integrated. Changeset: d002ad8e Author: Fredrik Bredberg <[email protected]> URL: https://git.openjdk.org/jdk/commit/d002ad8e5c5657fc2ae88e8844ad6f0fc5fd98fe Stats: 56 lines in 2 files changed: 9 ins; 37 del; 10 mod 8390949: Remove displaced-mark related code from SA agent Reviewed-by: aboldtch, coleenp, cjplummer ------------- PR: https://git.openjdk.org/jdk/pull/32758
