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

Langer, Christoph christoph.langer at sap.com
Wed Jun 28 12:04:36 UTC 2017

Hi Ogata,

> > remove the second run with -Dsun.nio.cs.bugLevel=1.4
> How can I do this?  Is it sufficient to remove the following line at the
> beginning of the file?: "@run main/othervm -Dsun.nio.cs.bugLevel=1.4
> EmptyCharsetName"

Yes, this line should be removed. Currently there are two @run directives which cause running the testcase twice. Once in normal mode and once with bugLevel set to 1.4. So, if "sun.nio.cs.bugLevel" ought to be removed then the second iteration of the test is obsolete. And then one should probably remove the whole "compat" handling in the test.

Best regards

More information about the core-libs-dev mailing list