Hi Claes, Looks fine.
ImmutableCollections.java: 418 looks like an extra blank line Thanks, Roger On 1/10/20 12:01 PM, Claes Redestad wrote:
Hi, this patch ensures operations on constant (static final) single-element lists and sets created via List.of(foo) and Set.of(bar) to constant fold properly. Bug: https://bugs.openjdk.java.net/browse/JDK-8236850 Webrev: http://cr.openjdk.java.net/~redestad/8236850/open.00 On micros that are set up to test constant folding, e.g. sumSizesFinalList, we see improvements around 10-15%. I also cleaned up and consolidated the heap archiving interaction a notch. It was needed in an earlier prototype version of the patch, but no longer.. since it's a cleanup I kept the changes. Testing: tier1-3 Thanks! /Claes