On Fri, 28 Aug 2026 11:39:54 GMT, Fredrik Bredberg <[email protected]> wrote:
> Since [JDK-8389325](https://bugs.openjdk.org/browse/JDK-8389325) > `ObjectMonitor::_metadata` only contains a copy of the object’s hash code. > But: > > 1. A `ObjectMonitorTable` lookup get the hash directly from the object’s mark > word, and ... > 2. ... no synchronization code uses the copy stored in the monitor. > > Therefore this PR removes the redundant `_metadata` field and its related > metadata/hash accessors, diagnostics, and serviceability support. > > Passes tier1-5 tests successfully on supported platforms. > > --------- > - [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: 094b580e Author: Fredrik Bredberg <[email protected]> URL: https://git.openjdk.org/jdk/commit/094b580e1ac3281ef62d3aba41c1cb68caab9243 Stats: 126 lines in 9 files changed: 13 ins; 95 del; 18 mod 8390970: Remove ObjectMonitor::_metadata Reviewed-by: dholmes, dcubed, aboldtch ------------- PR: https://git.openjdk.org/jdk/pull/32573
