On Wed, 18 Nov 2026 10:21:26 GMT, Markus Grönlund <[email protected]> wrote:

>> test/jdk/java/lang/instrument/LambdaClassUnloading.java line 173:
>> 
>>> 171:             // Transform before the first link too, avoiding an 
>>> initial STRONG helper.
>>> 172:             transform(retransform, host, originalBytes);
>>> 173:             runHelperWorkload(kind);
>> 
>> Q: Lines 118 and 172: Does the test ever check that helpers are generated 
>> before transformation?
>
> No, deliberately.
> 
> The test transforms the host before its first linkage so that every tracked 
> implementation belongs to the generations affected by this change. It then 
> checks that retained implementations survive and released implementations 
> unload. Initial strongly linked implementations are outside that unloading 
> expectation.

Okay, thanks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33921#discussion_r4612803299

Reply via email to