RFR: 8284632: runtime/Thread/StopAtExit.java possibly leaking memory again [v2]
Daniel D.Daugherty
dcubed at openjdk.java.net
Mon May 2 21:47:22 UTC 2022
On Mon, 2 May 2022 21:24:49 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Daniel D. Daugherty has updated the pull request incrementally with one additional commit since the last revision:
>>
>> pchilano, robehn, dholmes-ora - CR changes
>
> src/hotspot/share/runtime/thread.cpp line 1674:
>
>> 1672: HandshakeClosure("InstallAsyncException"), _aeh(aeh) {}
>> 1673: ~InstallAsyncExceptionHandshake() {
>> 1674: delete _aeh;
>
> A comment would have been good. I'm assuming:
>
> // Can only be non-null if this handshake was never actually executed.
Since we clear `_aeh` on L1679 below when `do_thread()` is executed, `_aeh` can
only be non-NULL when `~InstallAsyncExceptionHandshake()` runs if `do_thread()`
was never executed.
I can add that comment above L1674 in a separate bug fix if you wish.
@robehn - do you concur that a comment here would be good?
-------------
PR: https://git.openjdk.java.net/jdk/pull/8388
More information about the hotspot-runtime-dev
mailing list