mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8287442: Reduce list to array conversions in java.lang.invoke.MethodHandles
Reviewed-by: jvernee
This commit is contained in:
parent
5c39a36641
commit
ecf00785f2
3 changed files with 43 additions and 40 deletions
|
@ -509,7 +509,7 @@ public final class StringConcatFactory {
|
|||
// assembled bottom-up, which makes the code arguably hard to read.
|
||||
|
||||
// Drop all remaining parameter types, leave only helper arguments:
|
||||
MethodHandle mh = MethodHandles.dropArguments(newString(), 2, ptypes);
|
||||
MethodHandle mh = MethodHandles.dropArgumentsTrusted(newString(), 2, ptypes);
|
||||
|
||||
// Calculate the initialLengthCoder value by looking at all constant values and summing up
|
||||
// their lengths and adjusting the encoded coder bit if needed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue