-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
b16
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8204443 | 11.0.1 | Claes Redestad | P3 | Resolved | Fixed | team |
Similarly to JDK-8198418, we can avoid some early LF creation in various benchmarks by adapting calls to the altMetafactory as exactly as possible in the BootstrapMethodInvoker.
As a test case, the following program loads and generates 29 fewer classes with a patch to invoke the altMetafactory BSM exactly:
public class ComparingInt {
public static void main(String ... args) {
java.util.Arrays.sort(args, java.util.Comparator.comparingInt(s -> s.hashCode()));
}
}
As a test case, the following program loads and generates 29 fewer classes with a patch to invoke the altMetafactory BSM exactly:
public class ComparingInt {
public static void main(String ... args) {
java.util.Arrays.sort(args, java.util.Comparator.comparingInt(s -> s.hashCode()));
}
}
- backported by
-
JDK-8204443 Invoke LambdaMetafactory::altMetafactory exactly from the BootstrapMethodInvoker
-
- Resolved
-