Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8295419: JFR: Change name of jdk.JitRestart #10731

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hotspot/share/code/codeCache.cpp
Expand Up @@ -990,7 +990,7 @@ void CodeCache::flush_unlinked_nmethods() {
if (!CompileBroker::should_compile_new_jobs() && freed_memory != 0) {
CompileBroker::set_should_compile_new_jobs(CompileBroker::run_compilation);
log_info(codecache)("Restarting compiler");
EventJitRestart event;
EventJITRestart event;
event.set_freedMemory(freed_memory);
event.set_codeCacheMaxCapacity(CodeCache::max_capacity());
event.commit();
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/jfr/metadata/metadata.xml
Expand Up @@ -566,7 +566,7 @@
<Field type="ulong" contentType="bytes" name="used" label="Used" />
</Event>

<Event name="JitRestart" category="Java Virtual Machine, Compiler" label="JIT Restart" stackTrace="false" startTime="false" thread="true">
<Event name="JITRestart" category="Java Virtual Machine, Compiler" label="JIT Restart" stackTrace="false" startTime="false" thread="true">
<Field type="ulong" contentType="bytes" name="freedMemory" label="Freed Memory" />
<Field type="ulong" contentType="bytes" name="codeCacheMaxCapacity" label="Code Cache Maximum Capacity" />
</Event>
Expand Down
2 changes: 1 addition & 1 deletion src/jdk.jfr/share/conf/jfr/default.jfc
Expand Up @@ -540,7 +540,7 @@
<setting name="enabled" control="compiler-enabled-failure">false</setting>
</event>

<event name="jdk.JitRestart">
<event name="jdk.JITRestart">
<setting name="enabled" control="compiler-enabled">true</setting>
</event>

Expand Down
2 changes: 1 addition & 1 deletion src/jdk.jfr/share/conf/jfr/profile.jfc
Expand Up @@ -540,7 +540,7 @@
<setting name="enabled" control="compiler-enabled-failure">false</setting>
</event>

<event name="jdk.JitRestart">
<event name="jdk.JITRestart">
<setting name="enabled" control="compiler-enabled">true</setting>
</event>

Expand Down
4 changes: 2 additions & 2 deletions test/jdk/jdk/jfr/event/compiler/TestJitRestart.java
Expand Up @@ -68,7 +68,7 @@ private static boolean testWithBlobType(BlobType btype, long availableSize) thro
Recording r = new Recording();
r.enable(EventNames.CodeCacheFull);
r.enable(EventNames.Compilation);
r.enable(EventNames.JitRestart);
r.enable(EventNames.JITRestart);
r.start();
long addr = WHITE_BOX.allocateCodeBlob(availableSize, btype.id);
WHITE_BOX.freeCodeBlob(addr);
Expand All @@ -91,7 +91,7 @@ private static boolean testWithBlobType(BlobType btype, long availableSize) thro
if (evt.getEventType().getName().equals("jdk.Compilation") && !compilationCanHappen) {
return false;
}
if (evt.getEventType().getName().equals("jdk.JitRestart")) {
if (evt.getEventType().getName().equals("jdk.JITRestart")) {
System.out.println("--> jdk.JitRestart found");
Events.assertField(evt, "codeCacheMaxCapacity").notEqual(0L);
Events.assertField(evt, "freedMemory").notEqual(0L);
Expand Down
2 changes: 1 addition & 1 deletion test/lib/jdk/test/lib/jfr/EventNames.java
Expand Up @@ -162,7 +162,7 @@ public class EventNames {
public final static String ObjectAllocationOutsideTLAB = PREFIX + "ObjectAllocationOutsideTLAB";
public final static String ObjectAllocationSample = PREFIX + "ObjectAllocationSample";
public final static String Deoptimization = PREFIX + "Deoptimization";
public final static String JitRestart = PREFIX + "JitRestart";
public final static String JITRestart = PREFIX + "JITRestart";

// OS
public final static String OSInformation = PREFIX + "OSInformation";
Expand Down