RFR: 8276901: Implement UseHeavyMonitors consistently [v4]

David Holmes dholmes at openjdk.java.net
Wed Dec 1 01:32:28 UTC 2021


On Tue, 30 Nov 2021 17:22:28 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> > 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.

Sorry but I don't see how having the interpreter+C2 use stack-locks while C1 ignores them can possibly be correct. ???

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

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


More information about the hotspot-compiler-dev mailing list