RFR: 8314225: SIGSEGV in JavaThread::is_lock_owned [v3]

Daniel D. Daugherty dcubed at openjdk.org
Thu May 9 20:42:55 UTC 2024


On Thu, 2 May 2024 08:59:06 GMT, Kevin Walls <kevinw at openjdk.org> wrote:

>> Good point. Only JavaThread's can own ObjectMonitors.
>
> OK yes - can move that to JavaThread, with just adding one cast in synchronizer.cpp, where 
> ObjectSynchronizer::FastHashCode(Thread*, oop) uses is_lock_owned.
> 
> (ObjectSynchronizer::FastHashCode may be a candidate for taking JavaThread instead, maybe chasing down the users of that is a separate task. 8-) )

FTR: The last time we talked about that we discovered that JVM/TI object tagging still created
fast hashcodes and that work is done by the VMThread (or some other non-JavaThread).

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18940#discussion_r1595964699


More information about the hotspot-dev mailing list