RFR: 8283849: AsyncGetCallTrace may crash JVM on guarantee [v3]

Jaroslav Bachorik jbachorik at openjdk.java.net
Fri May 6 08:54:32 UTC 2022


On Fri, 6 May 2022 01:18:21 GMT, David Holmes <dholmes at 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


More information about the serviceability-dev mailing list