[10] RFR: 8178384: Reduce work in java.lang.invoke initializers
Claes Redestad
claes.redestad at oracle.com
Mon Apr 10 15:20:10 UTC 2017
On 04/10/2017 05:19 PM, Vladimir Ivanov wrote:
> Looks good.
Thanks for reviewing!
>
> One small suggestion [1]
Sure, updated in-place.
/Claes
>
> Best regards,
> Vladimir Ivanov
>
> [1] diff --git
> a/src/java.base/share/classes/java/lang/invoke/BoundMethodHandle.java
> b/src/java.base/share/classes/java/lang/invoke/BoundMethodHandle.java
> --- a/src/java.base/share/classes/java/lang/invoke/BoundMethodHandle.java
> +++ b/src/java.base/share/classes/java/lang/invoke/BoundMethodHandle.java
> @@ -456,6 +456,7 @@
> static final String MH = "java/lang/invoke/MethodHandle";
> static final String MH_SIG = "L"+MH+";";
> static final String BMH =
> "java/lang/invoke/BoundMethodHandle";
> + static final String BMH_NAME =
> "java.lang.invoke.BoundMethodHandle";
> static final String BMH_SIG = "L"+BMH+";";
> static final String SPECIES_DATA =
> "java/lang/invoke/BoundMethodHandle$SpeciesData";
> static final String SPECIES_DATA_SIG = "L"+SPECIES_DATA+";";
> @@ -463,7 +464,7 @@
>
> static final String SPECIES_PREFIX_NAME = "Species_";
> static final String SPECIES_PREFIX_PATH = BMH + "$" +
> SPECIES_PREFIX_NAME;
> - static final String SPECIES_CLASS_PREFIX =
> SPECIES_PREFIX_PATH.replace('/', '.');
> + static final String SPECIES_CLASS_PREFIX = BMH_NAME + "$" +
> SPECIES_PREFIX_NAME;
>
> static final String BMHSPECIES_DATA_EWI_SIG = "(B)" +
> SPECIES_DATA_SIG;
> static final String BMHSPECIES_DATA_GFC_SIG = "(" + JLS_SIG +
> JLC_SIG + ")" + SPECIES_DATA_SIG;
More information about the core-libs-dev
mailing list