RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v2]

David Holmes david.holmes at oracle.com
Fri Mar 5 04:12:03 UTC 2021


Hi Dan,

Thanks for taking a look at this.

Trimming ...

On 5/03/2021 9:46 am, Daniel D.Daugherty wrote:
> src/hotspot/share/runtime/synchronizer.hpp line 200:
> 
>> 198:   BasicLock   _lock;
>> 199:  public:
>> 200:   ObjectLocker(Handle obj, JavaThread* current);
> 
> So no more non-JavaThread uses of ObjectLocker?

Are you aware of any? ObjectLocker (and ObjectWaiter) pertain to 
ObjectMonitors, and ObjectMonitors can only be acquired by JavaThreads. 
Otherwise this whole change needs to be undone. :)

Thanks,
David

> -------------
> 
> PR: https://git.openjdk.java.net/jdk/pull/2802
> 


More information about the hotspot-runtime-dev mailing list