diff --git a/src/hotspot/share/code/codeCache.cpp b/src/hotspot/share/code/codeCache.cpp
index 40bc3bf602a..f68c1279c92 100644
--- a/src/hotspot/share/code/codeCache.cpp
+++ b/src/hotspot/share/code/codeCache.cpp
@@ -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();
diff --git a/src/hotspot/share/jfr/metadata/metadata.xml b/src/hotspot/share/jfr/metadata/metadata.xml
index 5dae01d11ef..b145d3d080c 100644
--- a/src/hotspot/share/jfr/metadata/metadata.xml
+++ b/src/hotspot/share/jfr/metadata/metadata.xml
@@ -566,7 +566,7 @@
-
+
diff --git a/src/jdk.jfr/share/conf/jfr/default.jfc b/src/jdk.jfr/share/conf/jfr/default.jfc
index ee96f6170c5..b47b3fd9af0 100644
--- a/src/jdk.jfr/share/conf/jfr/default.jfc
+++ b/src/jdk.jfr/share/conf/jfr/default.jfc
@@ -540,7 +540,7 @@
false
-
+
true
diff --git a/src/jdk.jfr/share/conf/jfr/profile.jfc b/src/jdk.jfr/share/conf/jfr/profile.jfc
index 4e72b945b2e..a14fce5699b 100644
--- a/src/jdk.jfr/share/conf/jfr/profile.jfc
+++ b/src/jdk.jfr/share/conf/jfr/profile.jfc
@@ -540,7 +540,7 @@
false
-
+
true
diff --git a/test/jdk/jdk/jfr/event/compiler/TestJitRestart.java b/test/jdk/jdk/jfr/event/compiler/TestJitRestart.java
index c1a11356c78..360215d7cf2 100644
--- a/test/jdk/jdk/jfr/event/compiler/TestJitRestart.java
+++ b/test/jdk/jdk/jfr/event/compiler/TestJitRestart.java
@@ -68,7 +68,7 @@ public class TestJitRestart {
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);
@@ -91,7 +91,7 @@ public class TestJitRestart {
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);
diff --git a/test/lib/jdk/test/lib/jfr/EventNames.java b/test/lib/jdk/test/lib/jfr/EventNames.java
index a1fc8091a72..5a0a03766fd 100644
--- a/test/lib/jdk/test/lib/jfr/EventNames.java
+++ b/test/lib/jdk/test/lib/jfr/EventNames.java
@@ -162,7 +162,7 @@ public class EventNames {
public static final String ObjectAllocationOutsideTLAB = PREFIX + "ObjectAllocationOutsideTLAB";
public static final String ObjectAllocationSample = PREFIX + "ObjectAllocationSample";
public static final String Deoptimization = PREFIX + "Deoptimization";
- public static final String JitRestart = PREFIX + "JitRestart";
+ public static final String JITRestart = PREFIX + "JITRestart";
// OS
public static final String OSInformation = PREFIX + "OSInformation";