On Tue, 28 Oct 2025 13:57:46 GMT, Dan Heidinga <[email protected]> wrote:

>>> Is there a particular subset of the SharedSecrets accessors that we want to 
>>> allow to be set during the assembly phase?
>> 
>> @DanHeidinga , I updated the code to disallow any AOT-initialized accessors 
>> that are not stateless. See 
>> `CDSHeapVerifier::SharedSecretsAccessorFinder::do_field()`. This check 
>> should cover all existing use of Lambdas in setting the accessors, as well 
>> as future changes in the core lib that might add other types of states in 
>> the accessors.
>
> Can you update the comment on `SharedSecrets.java` to indicate that lambdas 
> aren't safe to pre-initialize in this context?

I updated the comments.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27880#discussion_r2470693374

Reply via email to