RFR: 8276901: Implement UseHeavyMonitors consistently [v4]

Roman Kennke rkennke at openjdk.java.net
Tue Nov 30 17:27:05 UTC 2021


On Thu, 18 Nov 2021 06:47:23 GMT, David Holmes <dholmes at openjdk.org> wrote:

> HI Roman,
> 
> I have a number of initial comments/suggestions/requests - see below.
> 
> IIUC you are only making UseHeavyMonitors work properly on x86_64, but in that case you cannot convert UseFastLocks to UseHeavyMonitors on all platforms as it won't work correctly on those other platforms.
> 
> Cheers, David

It would not break as such on other platforms. It would only be partially implemented, that is C1 would emit calls to runtime for and only use monitors while interpreter and C2 would still emit stack locks. That is ok - and that is roughly what +UseFastLocking used to do.

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

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


More information about the hotspot-compiler-dev mailing list