8295419: JFR: Change name of jdk.JitRestart
Reviewed-by: mgronlun
This commit is contained in:
parent
95baf83dd6
commit
ecfb6bce5a
@ -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();
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user