Integrated: 8374145: Remove legacy locking remnants from markWord

Stefan Karlsson stefank at openjdk.org
Mon Dec 22 09:35:14 UTC 2025


On Fri, 19 Dec 2025 14:05:13 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> There's a bunch of unused code in markWord that used to be used by the removed legacy locking. I propose that we remove it.
> 
> There's a Shenandoah change that should be checked closer. My thinking is:
>  `is_being_inflated`: always returns false
>  `has_displaced_mark_helper`: Only returns true if both these are true:
>    * `!UseCompactObjectTable` - there's an early return for this earlier in the function.
>    * `lockbits == monitor_value` - checked in the if-statement above

This pull request has now been integrated.

Changeset: e6c3ebe2
Author:    Stefan Karlsson <stefank at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e6c3ebe27b0dd4cbf1885d79ea50acb208e364fa
Stats:     33 lines in 2 files changed: 0 ins; 32 del; 1 mod

8374145: Remove legacy locking remnants from markWord

Reviewed-by: aboldtch, kbarrett, coleenp

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

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


More information about the shenandoah-dev mailing list