Skip to content

Commit 4ab772b

Browse files
committed
Fix typo.
1 parent dfe2065 commit 4ab772b

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/common/CompilationListenerProfiler.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,6 @@
2626

2727
import jdk.graal.compiler.debug.CompilationListener;
2828
import jdk.graal.compiler.debug.DebugContext;
29-
3029
import jdk.vm.ci.meta.ResolvedJavaMethod;
3130

3231
/**
@@ -47,7 +46,7 @@ public CompilationListenerProfiler(CompilerProfiler profiler, int compileId) {
4746

4847
@Override
4948
public void notifyInlining(ResolvedJavaMethod caller, ResolvedJavaMethod callee, boolean succeeded, CharSequence message, int bci) {
50-
profiler.notifyCompilerInlingEvent(compileId, caller, callee, succeeded, message.toString(), bci);
49+
profiler.notifyCompilerInliningEvent(compileId, caller, callee, succeeded, message.toString(), bci);
5150
}
5251

5352
@Override

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/core/common/CompilerProfiler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -61,5 +61,5 @@ public interface CompilerProfiler {
6161
* @param message extra information about inlining decision
6262
* @param bci byte code index of call site
6363
*/
64-
void notifyCompilerInlingEvent(int compileId, ResolvedJavaMethod caller, ResolvedJavaMethod callee, boolean succeeded, String message, int bci);
64+
void notifyCompilerInliningEvent(int compileId, ResolvedJavaMethod caller, ResolvedJavaMethod callee, boolean succeeded, String message, int bci);
6565
}

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/JFRCompilerProfiler.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,6 @@
2626

2727
import jdk.graal.compiler.core.common.CompilerProfiler;
2828
import jdk.graal.compiler.serviceprovider.ServiceProvider;
29-
3029
import jdk.vm.ci.hotspot.JFR;
3130
import jdk.vm.ci.meta.ResolvedJavaMethod;
3231

@@ -47,7 +46,7 @@ public void notifyCompilerPhaseEvent(int compileId, long startTime, String name,
4746
}
4847

4948
@Override
50-
public void notifyCompilerInlingEvent(int compileId, ResolvedJavaMethod caller, ResolvedJavaMethod callee,
49+
public void notifyCompilerInliningEvent(int compileId, ResolvedJavaMethod caller, ResolvedJavaMethod callee,
5150
boolean succeeded, String message, int bci) {
5251
JFR.CompilerInliningEvent.write(compileId, caller, callee, succeeded, message, bci);
5352
}

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/replaycomp/CompilerInterfaceDeclarations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ public static CompilerInterfaceDeclarations build() {
665665
new RegistrationBuilder<>(CompilerProfiler.class).setSingleton(true)
666666
.setStrategy(CompilerProfilerProxy.getTicksMethod, MethodStrategy.Passthrough)
667667
.setStrategy(CompilerProfilerProxy.notifyCompilerPhaseEventMethod, MethodStrategy.Passthrough)
668-
.setDefaultValueStrategy(CompilerProfilerProxy.notifyCompilerInlingEventMethod, null)
668+
.setDefaultValueStrategy(CompilerProfilerProxy.notifyCompilerInliningEventMethod, null)
669669
.register(declarations);
670670
new RegistrationBuilder<>(HotSpotResolvedObjectType.class, HotSpotResolvedJavaType.class)
671671
.ensureRecorded(HotSpotResolvedObjectTypeProxy.getNameMethod, HotSpotResolvedObjectTypeProxy.getNameInvokable)

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/replaycomp/proxy/CompilerProfilerProxy.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ public void notifyCompilerPhaseEvent(int compileId, long startTime, String name,
5757
handle(notifyCompilerPhaseEventMethod, notifyCompilerPhaseEventInvokable, compileId, startTime, name, nestingLevel);
5858
}
5959

60-
public static final SymbolicMethod notifyCompilerInlingEventMethod = method("notifyCompilerInlingEvent", int.class, ResolvedJavaMethod.class, ResolvedJavaMethod.class, boolean.class,
60+
public static final SymbolicMethod notifyCompilerInliningEventMethod = method("notifyCompilerInliningEvent", int.class, ResolvedJavaMethod.class, ResolvedJavaMethod.class, boolean.class,
6161
String.class, int.class);
62-
private static final InvokableMethod notifyCompilerInlingEventInvokable = (receiver, args) -> {
63-
((CompilerProfiler) receiver).notifyCompilerInlingEvent((int) args[0], (ResolvedJavaMethod) args[1], (ResolvedJavaMethod) args[2], (boolean) args[3], (String) args[4], (int) args[5]);
62+
private static final InvokableMethod notifyCompilerInliningEventInvokable = (receiver, args) -> {
63+
((CompilerProfiler) receiver).notifyCompilerInliningEvent((int) args[0], (ResolvedJavaMethod) args[1], (ResolvedJavaMethod) args[2], (boolean) args[3], (String) args[4], (int) args[5]);
6464
return null;
6565
};
6666

6767
@Override
68-
public void notifyCompilerInlingEvent(int compileId, ResolvedJavaMethod caller, ResolvedJavaMethod callee, boolean succeeded, String message, int bci) {
69-
handle(notifyCompilerInlingEventMethod, notifyCompilerInlingEventInvokable, compileId, caller, callee, succeeded, message, bci);
68+
public void notifyCompilerInliningEvent(int compileId, ResolvedJavaMethod caller, ResolvedJavaMethod callee, boolean succeeded, String message, int bci) {
69+
handle(notifyCompilerInliningEventMethod, notifyCompilerInliningEventInvokable, compileId, caller, callee, succeeded, message, bci);
7070
}
7171
}

0 commit comments

Comments
 (0)