8198523: Refactor BootstrapMethodInvoker to further avoid runtime type checks

Reviewed-by: psandoz
This commit is contained in:
Claes Redestad 2018-02-22 11:16:43 +01:00
parent cff8ccbcf7
commit ac45567657
2 changed files with 172 additions and 62 deletions

View file

@ -373,6 +373,12 @@ public final class StringConcatFactory {
}
}
// StringConcatFactory bootstrap methods are startup sensitive, and may be
// special cased in java.lang.invokeBootstrapMethodInvoker to ensure
// methods are invoked with exact type information to avoid generating
// code for runtime checks. Take care any changes or additions here are
// reflected there as appropriate.
/**
* Facilitates the creation of optimized String concatenation methods, that
* can be used to efficiently concatenate a known number of arguments of