On Wed, 25 Nov 2026 02:41:02 GMT, David Holmes <[email protected]> wrote:

>> Just re-reading your changes to 
>> [d244fce](https://github.com/openjdk/jdk/commit/d244fceff3e48fae405e4da1d055db55344c7c7a).
>>  If I read it correctly then detect_locks is no longer exclusively reliant 
>> on the frame locals, which may be why we needed to use WB in 
>> testWaitingThread to avoid intermittent failures.
>
> I'm not sure what you are referring to regarding the test and WB. But the 
> only time we need to use locals to get the target object is the small window 
> where we are executing the native wait0() method (and so it appears on the 
> top of the stack) but we have not yet called into the VM to starting the 
> waiting process. I don't know if that native frame can be replaced with 
> something else when compiled code is involved.

I should have been clearer. DumpThreads.testWaitingThread was using the 
WhiteBox API to test if Object.wait0 was compiled in the same way that the new 
testThreadJoin (that you commented on) was using it.  The update to the test 
removes the use of the WB API for this purpose.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33659#discussion_r4691359206

Reply via email to