Missing folding in foreign.abi?

Ryan Hallock ryan at hallock.us
Wed Nov 19 18:37:44 UTC 2025


I was reviewing the recent changes in ciField.cpp and noticed that
`jdk.internal.foreign.abi` is not included among the special cases for
final fields. Is this intentional? My assumption was that you would want
all folding possible.

I also observed that some structures such as the HashMap stored in
UpcallLinker.InvocationData and others like CallingSequence are using
mutable collections rather than immutable ones. Similarly, classes such as
ABIDescriptor don’t appear to apply the `@Stable` annotation to their
arrays, though it might require more constructs because I don't believe
Stable is recursive.

I’m hoping this is simply an oversight and can be resolved.

Cheers,
Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20251119/a2e02266/attachment.htm>


More information about the panama-dev mailing list