[master] RFR: Disable biased locking altogether

Aleksey Shipilev shade at openjdk.java.net
Tue May 11 17:42:28 UTC 2021


On Tue, 11 May 2021 17:22:10 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> In anticipation of eventual removal of biased locking (see JDK-8256425), I'd like to always disable BL in Lilliput. This makes room in the header to put the compressed Klass* in the upper 32 bit. With BL, it would clash with the Thread* there.
> 
> Testing:
>  - [x] tier1
>  - [ ] tier2

Marked as reviewed by shade (Committer).

src/hotspot/share/runtime/arguments.cpp line 4105:

> 4103:   if (!FLAG_IS_DEFAULT(UseBiasedLocking) && UseBiasedLocking) {
> 4104:     warning("Biased Locking is not supported with Lilliput build"
> 4105:             "; ignoring UseBiasedLocking flag." );

I'd leave it as one line, up to you.

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

PR: https://git.openjdk.java.net/lilliput/pull/4


More information about the lilliput-dev mailing list