Skip to content

Commit 7878f0f

Browse files
committed
Inline also StringCoding methods
1 parent edcc6fe commit 7878f0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/replacements/test/StringGetBytesTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ protected void checkLowTierGraph(StructuredGraph graph) {
7474

7575
@Override
7676
protected InlineInvokePlugin.InlineInfo bytecodeParserShouldInlineInvoke(GraphBuilderContext b, ResolvedJavaMethod method, ValueNode[] args) {
77-
if (method.getDeclaringClass().getUnqualifiedName().equals("String") && !method.getName().equals("implEncodeISOArray")) {
77+
String className = method.getDeclaringClass().getUnqualifiedName();
78+
if ((className.equals("String") && !method.getName().equals("implEncodeISOArray")) || className.equals("StringCoding")) {
7879
return InlineInvokePlugin.InlineInfo.createStandardInlineInfo(method);
7980
}
8081
return super.bytecodeParserShouldInlineInvoke(b, method, args);

0 commit comments

Comments
 (0)