RFR: 8355379: Annotate lazy fields in java.security @Stable [v4]
Per Minborg
pminborg at openjdk.org
Tue Aug 5 08:10:04 UTC 2025
On Tue, 29 Jul 2025 23:07:45 GMT, Koushik Muthukrishnan Thirupattur <duke at openjdk.org> wrote:
>> Several classes in the `java.security` package lazily compute their hash value and store it in a field. These fields can typically be annotated with the `@Stable` annotation. Many of the current implementations are using -1 as a flag for not computed, this needs to be refactored away.
>>
>> Here are some examples of such classes: PKCS12Attribute and URICertStoreParameters.
>
> Koushik Muthukrishnan Thirupattur has updated the pull request incrementally with three additional commits since the last revision:
>
> - 8355379: Annotate lazy fields in java.security @Stable
> - 8355379: Annotate lazy fields in java.security @Stable
> - 8355379: Annotate lazy fields in java.security @Stable
The latest changes look good to me.
-------------
Marked as reviewed by pminborg (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25405#pullrequestreview-3087082930
More information about the security-dev
mailing list