On Tue, 28 Jan 2025 03:20:22 GMT, Jorn Vernee <jver...@openjdk.org> wrote:

>> src/java.base/share/classes/jdk/internal/foreign/ConfinedSession.java line 
>> 112:
>> 
>>> 110:             if (fst != ResourceCleanup.CLOSED_LIST) {
>>> 111:                 ResourceCleanup prev = fst;
>>> 112:                 fst = ResourceCleanup.CLOSED_LIST;
>> 
>> Is there a reason why usage of fst here doesn't prevent successful escape 
>> analysis?
>
> Why do you think it should? We never assign the newly allocated resource 
> cleanup to `fst`.

So was the culprit `cleanup.next = fst;`?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23321#discussion_r1931472966

Reply via email to