On Tue, 20 Oct 2020 12:53:15 GMT, Robbin Ehn <r...@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

Reply via email to