RFR: 8271615: vmTestbase/vm/jit/LongTransitions/ test fail due to locale mismatch
Aleksey Shipilev
shade at openjdk.org
Fri Aug 26 10:14:52 UTC 2022
On Thu, 25 Aug 2022 23:36:37 GMT, Mikhailo Seledtsov <mseledtsov at openjdk.org> wrote:
> Decimal point differs based on locale, could be '.' or ','.
> Due to settings on a test host environment locale may differ between
> the native side vs Java side thus causing mismatch and test failure.
>
> Solution: added special handling in comparison loop for decimal points.
>
> Testing: PASS (see bug comments for details)
Ouch. I would have expected the default JVM locale inherited from the system locale. Did it start to fail due to "JEP 400: UTF-8 by Default"?
test/hotspot/jtreg/vmTestbase/vm/jit/LongTransitions/LTTest.java line 6229:
> 6227: continue;
> 6228: }
> 6229: }
Suggestion:
if ((cData[cnt] == '.' || cData[cnt] == ',') &&
(javaData[cnt] == '.' || javaData[cnt] == ',')) {
continue;
}
-------------
PR: https://git.openjdk.org/jdk/pull/10033
More information about the hotspot-compiler-dev
mailing list