8179527: Ineffective use of volatile hurts performance of Charset.atBugLevel()

Alan Bateman Alan.Bateman at oracle.com
Tue Jun 27 11:25:18 UTC 2017


On 27/06/2017 09:34, Kazunori Ogata wrote:
> :
> The code looks that it doesn't use final intentionally because it
> postpones setting set bugLevel until VM.isBooted() returns true, though
> I'm not sure if the value of privilegedGetProperty() can change during a
> bootstrap of JVM.
> -----
> 289:            if (!VM.isBooted())
> 290:                return false;
> -----
>
I think we can remove the atBugLevel check from Charset.checkName and 
also the CharsetEncoder/CharsetDecoder constructors.

-Alan


More information about the ppc-aix-port-dev mailing list