String concatenation tweaks

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon May 25 19:01:52 UTC 2015


On 05/24/2015 06:33 PM, Remi Forax wrote:
> Here is my version (see at the end of this message).

Thanks! Merged it into the patchset with minor polish:
 http://cr.openjdk.java.net/~shade/scratch/string-concat-indy/

The performance is interesting. It seems to break OptimizeStringConcat,
and so it's a performance win only on non-optimized chains, like
string_string_long. The allocation pressure is slightly higher as well,
seems to be because int[] from the collector is not scalarized.

You may want to tune it more, JMH benchmarks are here:
 http://cr.openjdk.java.net/~shade/scratch/string-concat-indy/indy-concat-bench.tar.gz

...and -prof perfasm, -prof perfnorm, and -prof gc are your friends.

Thanks,
-Aleksey

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20150525/d9ad4d74/signature.asc>


More information about the compiler-dev mailing list