On Tue, 13 May 2025 13:30:18 GMT, Chen Liang <li...@openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/ClassValue.java line 348:
>> 
>>> 346: 
>>> 347:         // Arguments are nullable, intentionally to allow initial 
>>> tokens
>>> 348:         static boolean areCompatible(RemovalToken current, 
>>> RemovalToken original) {
>> 
>> Are "equivalent"?
>
> Not really: if you have an original token and a current token created during 
> the computeValue of the original token, they are compatible but not really 
> "equivalent" (i.e. the threadId case)

Maybe `canAssociate`?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24043#discussion_r2086840404

Reply via email to