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) {
|
if (!CompileBroker::should_compile_new_jobs() && freed_memory != 0) {
|
||||||
CompileBroker::set_should_compile_new_jobs(CompileBroker::run_compilation);
|
CompileBroker::set_should_compile_new_jobs(CompileBroker::run_compilation);
|
||||||
log_info(codecache)("Restarting compiler");
|
log_info(codecache)("Restarting compiler");
|
||||||
EventJitRestart event;
|
EventJITRestart event;
|
||||||
event.set_freedMemory(freed_memory);
|
event.set_freedMemory(freed_memory);
|
||||||
event.set_codeCacheMaxCapacity(CodeCache::max_capacity());
|
event.set_codeCacheMaxCapacity(CodeCache::max_capacity());
|
||||||
event.commit();
|
event.commit();
|
||||||
|
@ -566,7 +566,7 @@
|
|||||||
<Field type="ulong" contentType="bytes" name="used" label="Used" />
|
<Field type="ulong" contentType="bytes" name="used" label="Used" />
|
||||||
</Event>
|
</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="freedMemory" label="Freed Memory" />
|
||||||
<Field type="ulong" contentType="bytes" name="codeCacheMaxCapacity" label="Code Cache Maximum Capacity" />
|
<Field type="ulong" contentType="bytes" name="codeCacheMaxCapacity" label="Code Cache Maximum Capacity" />
|
||||||
</Event>
|
</Event>
|
||||||
|
@ -540,7 +540,7 @@
|
|||||||
<setting name="enabled" control="compiler-enabled-failure">false</setting>
|
<setting name="enabled" control="compiler-enabled-failure">false</setting>
|
||||||
</event>
|
</event>
|
||||||
|
|
||||||
<event name="jdk.JitRestart">
|
<event name="jdk.JITRestart">
|
||||||
<setting name="enabled" control="compiler-enabled">true</setting>
|
<setting name="enabled" control="compiler-enabled">true</setting>
|
||||||
</event>
|
</event>
|
||||||
|
|
||||||
|
@ -540,7 +540,7 @@
|
|||||||
<setting name="enabled" control="compiler-enabled-failure">false</setting>
|
<setting name="enabled" control="compiler-enabled-failure">false</setting>
|
||||||
</event>
|
</event>
|
||||||
|
|
||||||
<event name="jdk.JitRestart">
|
<event name="jdk.JITRestart">
|
||||||
<setting name="enabled" control="compiler-enabled">true</setting>
|
<setting name="enabled" control="compiler-enabled">true</setting>
|
||||||
</event>
|
</event>
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ public class TestJitRestart {
|
|||||||
Recording r = new Recording();
|
Recording r = new Recording();
|
||||||
r.enable(EventNames.CodeCacheFull);
|
r.enable(EventNames.CodeCacheFull);
|
||||||
r.enable(EventNames.Compilation);
|
r.enable(EventNames.Compilation);
|
||||||
r.enable(EventNames.JitRestart);
|
r.enable(EventNames.JITRestart);
|
||||||
r.start();
|
r.start();
|
||||||
long addr = WHITE_BOX.allocateCodeBlob(availableSize, btype.id);
|
long addr = WHITE_BOX.allocateCodeBlob(availableSize, btype.id);
|
||||||
WHITE_BOX.freeCodeBlob(addr);
|
WHITE_BOX.freeCodeBlob(addr);
|
||||||
@ -91,7 +91,7 @@ public class TestJitRestart {
|
|||||||
if (evt.getEventType().getName().equals("jdk.Compilation") && !compilationCanHappen) {
|
if (evt.getEventType().getName().equals("jdk.Compilation") && !compilationCanHappen) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (evt.getEventType().getName().equals("jdk.JitRestart")) {
|
if (evt.getEventType().getName().equals("jdk.JITRestart")) {
|
||||||
System.out.println("--> jdk.JitRestart found");
|
System.out.println("--> jdk.JitRestart found");
|
||||||
Events.assertField(evt, "codeCacheMaxCapacity").notEqual(0L);
|
Events.assertField(evt, "codeCacheMaxCapacity").notEqual(0L);
|
||||||
Events.assertField(evt, "freedMemory").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 ObjectAllocationOutsideTLAB = PREFIX + "ObjectAllocationOutsideTLAB";
|
||||||
public static final String ObjectAllocationSample = PREFIX + "ObjectAllocationSample";
|
public static final String ObjectAllocationSample = PREFIX + "ObjectAllocationSample";
|
||||||
public static final String Deoptimization = PREFIX + "Deoptimization";
|
public static final String Deoptimization = PREFIX + "Deoptimization";
|
||||||
public static final String JitRestart = PREFIX + "JitRestart";
|
public static final String JITRestart = PREFIX + "JITRestart";
|
||||||
|
|
||||||
// OS
|
// OS
|
||||||
public static final String OSInformation = PREFIX + "OSInformation";
|
public static final String OSInformation = PREFIX + "OSInformation";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user