RFR: 8223312: Utilize handshakes instead of is_thread_fully_suspended [v2]
Coleen Phillimore
coleenp at openjdk.java.net
Tue Oct 20 14:17:17 UTC 2020
On Tue, 20 Oct 2020 12:53:15 GMT, Robbin Ehn <rehn at openjdk.org> wrote:
>> Why don't you just do:
>> JavaThread* java_thread = JavaThread::current();
>> HandleMark hm(java_thread);
>>
>> JavaThread::current is the same thing as what you have.
>>
>> Oh I see there are two different threads. nevermind.
>
> Hi Coleen, we are in a handshake.
> Target java_thread must be treat as different from current thread.
> It can be same, but also another thread java thread or VM thread.
> So we only know the the thread executing is a Thread, but our target is a JavaThread.
>
> Here we want to create a HandleMark in current thread.
> Then we want a JavaThread pointer to the target for later use.
>
> Does that explain it?
I see it now, different threads.
-------------
PR: https://git.openjdk.java.net/jdk/pull/729
More information about the hotspot-dev
mailing list