Can @Stable (or something similar) be made accessible?
aph at redhat.com
Fri Jan 12 10:08:18 UTC 2018
On 12/01/18 09:06, Laurent Bourgès wrote:
> I already made my fields (& constants) final but it is not enough to let
> hotspot trust totally my code, isn't it ?
To some extent yes, to some extent no. HotSpot really does trust
static final constants not to change, so @Stable won't help you
with those. It's hard to optimize much of anything with fields
that are not static final.
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the core-libs-dev