hg: jdk/sandbox: 8237528: Inefficient compilation of Pattern Matching for instanceof

chris.hegarty at oracle.com chris.hegarty at oracle.com
Wed Jan 29 09:45:16 UTC 2020


Changeset: 2a46b7b81e78
Author:    jlahoda
Date:      2020-01-29 10:37 +0100
URL:       https://hg.openjdk.java.net/jdk/sandbox/rev/2a46b7b81e78

8237528: Inefficient compilation of Pattern Matching for instanceof
Summary: Avoiding unnecessary cast and comparison in type test pattern desugaring.
Reviewed-by: forax, mcimadamore

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TransPatterns.java
! test/langtools/tools/javac/annotations/typeAnnotations/classfile/Patterns.java
! test/langtools/tools/javac/patterns/LocalVariableTable.java
+ test/langtools/tools/javac/patterns/NoUnnecessaryCast.java



More information about the jdk-sandbox-changes mailing list