[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Integrated: 8272120: Avoid looking for standard encodings in "java." modules
From:       Sergey Bylokhov <serb () openjdk ! java ! net>
Date:       2021-08-12 5:49:28
Message-ID: agg3n6G3MH6Oa9VOYwVrWvhzX9MU6qy2CoGkZlxSjnI=.fb969f07-75d2-46f6-8486-a706d6f86cca () github ! com
[Download RAW message or body]

On Tue, 10 Aug 2021 05:08:54 GMT, Sergey Bylokhov <serb@openjdk.org> wrote:

> This is the continuation of JDK-8233884 and JDK-8271456. This change affects fewer \
> cases so I fix all "java." modules at once. 
> In many places standard charsets are looked up via their names, for example:
> absolutePath.getBytes("UTF-8");
> 
> This could be done more efficiently(up to x20 time faster) with use of \
> java.nio.charset.StandardCharsets: absolutePath.getBytes(StandardCharsets.UTF_8);
> 
> The later variant also makes the code cleaner, as it is known not to throw \
> UnsupportedEncodingException in contrary to the former variant. 
> tested by the tier1/tier2/tier3 tests on Linux/Windows/macOS.

This pull request has now been integrated.

Changeset: ec2fc384
Author:    Sergey Bylokhov <serb@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/ec2fc384e50668b667335f973ffeb5a19bbcfb9b
                
Stats:     127 lines in 15 files changed: 24 ins; 53 del; 50 mod

8272120: Avoid looking for standard encodings in "java." modules

Reviewed-by: alanb, dfuchs, naoto

-------------

PR: https://git.openjdk.java.net/jdk/pull/5063


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic