RFR: 7904026: JOL: Handle (generational) ZGC when dealing with raw addresses [v6]

Aleksey Shipilev shade at openjdk.org
Fri Jun 6 17:35:18 UTC 2025


On Fri, 6 Jun 2025 17:32:05 GMT, Anton Rybochkin <duke at openjdk.org> wrote:

>> Because of color bits in lower positions, object alignment size heuristics does not work with generational ZGC. This PR implements address uncolorizing so alignment size and hence object size is calculated correctly
>
> Anton Rybochkin has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Actualize year in license headers
>  - Added a license header

Update the years like this, and we are done.

Looks fine. We may need to touch it up later, but this is good to go in. Thanks for the contribution!

jol-core/src/main/java/org/openjdk/jol/vm/ZGCAddress.java line 2:

> 1: /*
> 2:  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.

Suggestion:

 * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.

jol-core/src/test/java/org/openjdk/jol/vm/HotspotUnsafeTest.java line 2:

> 1: /*
> 2:  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.

Suggestion:

 * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.

jol-core/src/test/java/org/openjdk/jol/vm/ZGCAddressTest.java line 2:

> 1: /*
> 2:  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.

Suggestion:

 * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.

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

PR Review: https://git.openjdk.org/jol/pull/65#pullrequestreview-2905584367
Marked as reviewed by shade (Committer).

PR Review: https://git.openjdk.org/jol/pull/65#pullrequestreview-2905593165
PR Review Comment: https://git.openjdk.org/jol/pull/65#discussion_r2132587953
PR Review Comment: https://git.openjdk.org/jol/pull/65#discussion_r2132588161
PR Review Comment: https://git.openjdk.org/jol/pull/65#discussion_r2132589016


More information about the jol-dev mailing list