mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8198523: Refactor BootstrapMethodInvoker to further avoid runtime type checks
Reviewed-by: psandoz
This commit is contained in:
parent
cff8ccbcf7
commit
ac45567657
2 changed files with 172 additions and 62 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue