On Fri, 6 May 2022 01:18:21 GMT, David Holmes <dhol...@openjdk.org> wrote:

>> I will have to do check/cast in `CodeCache::find_blob()` as that may get 
>> called from any thread, not just Java threads.
>> I would assume that having this flag defined at Thread level is a lesser of 
>> the evils - or am I wrong here?
>
> We have been actively moving JavaThread fields out of Thread.

Ok. Moved to `JavaThread`.
There is a small cost to pay in `CodeCache::find_blob()` where we need to check 
if the thread is a `JavaThread` because that function can be called also from 
non-java threads, AFAIK.

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

PR: https://git.openjdk.java.net/jdk/pull/8549

Reply via email to