Integrated: 8366193: Add comments about ResolvedFieldEntry::copy_from()

Ioi Lam iklam at openjdk.org
Thu Aug 28 18:11:51 UTC 2025


On Tue, 26 Aug 2025 16:53:17 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> [JDK-8293980](https://bugs.openjdk.org/browse/JDK-8293980) added `ResolvedFieldEntry::copy_from()` to prevent random bits in the CDS archive. However, I forgot to add a comment to explain why this is necessary.
> 
> This PR adds the missing comment, which will be useful if we consider alternative solutions (using `memset()` in constructor??) in the future.

This pull request has now been integrated.

Changeset: 9f70965b
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/9f70965bb9ead2268c02c688c79ec0d80574c725
Stats:     36 lines in 3 files changed: 33 ins; 0 del; 3 mod

8366193: Add comments about ResolvedFieldEntry::copy_from()

Reviewed-by: adinn, coleenp

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

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


More information about the hotspot-dev mailing list