RFR: 8285523: The test for JDK-8285445 can be improved

2022-04-24 Thread Sergey Bylokhov
The new test added as part of the [JDK-8285445](https://bugs.openjdk.java.net/browse/JDK-8285445) cannot trigger that bug and pass w/ and w/o fix. An updated test validates the "default" case when the `jdk.io.File.enableADS` property is not set, in this case the ADS should be

Re: RFR: 8285517: System.getenv() returns unexpected value if environment variable has non ASCII character

2022-04-24 Thread kristylee88
On Sun, 24 Apr 2022 09:18:54 GMT, Ichiroh Takiguchi wrote: > On JDK19 with Linux ja_JP.eucjp locale, > System.getenv() returns unexpected value if environment variable has Japanese > EUC characters. > It seems this issue happens because of JEP 400. > Arguments for ProcessBuilder have same kind

RFR: 8285517: System.getenv() returns unexpected value if environment variable has non ASCII character

2022-04-24 Thread Ichiroh Takiguchi
On JDK19 with Linux ja_JP.eucjp locale, System.getenv() returns unexpected value if environment variable has Japanese EUC characters. It seems this issue happens because of JEP 400. Arguments for ProcessBuilder have same kind of issue. - Commit messages: - 8285517: System.getenv()

RFR: 8285519: Simplify TimeUnit.convert calls

2022-04-24 Thread Andrey Turbanov
TimeUnit.toMillis/toNanos/toMicros/toSeconds is shorter and a bit faster. Compared via JMH benchmark: 150ns -> 125ns/op Benchamark adapted from http://cr.openjdk.java.net/~shade/8152083/TimeUnitBench.java @Warmup(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS) @Measurement(iterations =