RFR: 8238761: Asynchronous handshakes [v5]
Coleen Phillimore
coleenp at openjdk.java.net
Tue Sep 22 14:51:12 UTC 2020
On Tue, 22 Sep 2020 14:07:11 GMT, Robbin Ehn <rehn at openjdk.org> wrote:
>> src/hotspot/share/prims/whitebox.cpp line 2050:
>>
>>> 2048: JavaThread* target = java_lang_Thread::thread(thread_oop);
>>> 2049: TraceSelfClosure* tsc = new TraceSelfClosure(target);
>>> 2050: Handshake::execute(tsc, target);
>>
>> I know it's a whitebox test, but should this delete TraceSelfClosure sometime?
>
> Please have a look here, we delete it if we fail to install it:
> https://github.com/openjdk/jdk/blob/cd784a751a3153939b9284898f370160124ca610/src/hotspot/share/runtime/handshake.cpp#L352
> Here we delete it after we processed it:
> https://github.com/openjdk/jdk/blob/cd784a751a3153939b9284898f370160124ca610/src/hotspot/share/runtime/handshake.cpp#L419
>
> Since this as async op, the requester can't safely delete it.
Ok, thanks for pointing it out.
-------------
PR: https://git.openjdk.java.net/jdk/pull/151
More information about the hotspot-runtime-dev
mailing list