[jdk11u-dev] Integrated: 8279833: Loop optimization issue in String.encodeUTF8_UTF16

Goetz Lindenmaier goetz at openjdk.java.net
Wed Jan 26 08:21:41 UTC 2022


On Mon, 24 Jan 2022 14:34:30 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:

> I backport this for parity with 11.0.15-oracle.
> 
> The patch does not apply well.
> 
> 8259842: Remove Result cache from StringCoding  is missing in 11.
> Therefore the actual change must be applied to StringCoding.java
> and not to String.java.  The method encodeUTF8_UTF16() was moved
> from the one to the other file in 8259842.
> 
> 8259842 change also brought the benchmark edited by this change.
> I include the whole benchmark in this change. I had to adapt the strings
> to compile with 11.

This pull request has now been integrated.

Changeset: 84ed9671
Author:    Goetz Lindenmaier <goetz at openjdk.org>
URL:       https://git.openjdk.java.net/jdk11u-dev/commit/84ed96716080ae84ce804b1cd17e49124ab8612c
Stats:     132 lines in 2 files changed: 128 ins; 1 del; 3 mod

8279833: Loop optimization issue in String.encodeUTF8_UTF16

Reviewed-by: stuefe
Backport-of: ff8565931115d581afff679ea85b1a2d80c03b99

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

PR: https://git.openjdk.java.net/jdk11u-dev/pull/791


More information about the jdk-updates-dev mailing list