8298255: JFR provide information about dynamization of number of compiler threads
Reviewed-by: stuefe, mgronlun, egahlin
This commit is contained in:
parent
e555d54705
commit
fc52f21f9a
@ -937,6 +937,7 @@
|
||||
<Event name="CompilerConfiguration" category="Java Virtual Machine, Compiler" label="Compiler Configuration" thread="false" period="endChunk" startTime="false">
|
||||
<Field type="int" name="threadCount" label="Thread Count" />
|
||||
<Field type="boolean" name="tieredCompilation" label="Tiered Compilation" />
|
||||
<Field type="boolean" name="dynamicCompilerThreadCount" label="Uses Dynamic Number of Compiler Threads" />
|
||||
</Event>
|
||||
|
||||
<Event name="CodeCacheStatistics" category="Java Virtual Machine, Code Cache" label="Code Cache Statistics" thread="false" period="everyChunk" startTime="false">
|
||||
|
@ -588,6 +588,7 @@ TRACE_REQUEST_FUNC(CompilerConfiguration) {
|
||||
EventCompilerConfiguration event;
|
||||
event.set_threadCount(CICompilerCount);
|
||||
event.set_tieredCompilation(TieredCompilation);
|
||||
event.set_dynamicCompilerThreadCount(UseDynamicNumberOfCompilerThreads);
|
||||
event.commit();
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -52,6 +52,7 @@ public class TestCompilerConfig {
|
||||
System.out.println("Event:" + event);
|
||||
Events.assertField(event, "threadCount").atLeast(0);
|
||||
Events.assertField(event, "tieredCompilation");
|
||||
Events.assertField(event, "dynamicCompilerThreadCount");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -98,7 +98,7 @@ public class TestEventMetadata {
|
||||
Set<String> eventNames= new HashSet<>();
|
||||
for (EventType eventType : eventTypes) {
|
||||
verifyEventType(eventType);
|
||||
verifyValueDesscriptors(eventType.getFields(), types);
|
||||
verifyValueDescriptors(eventType.getFields(), types);
|
||||
System.out.println();
|
||||
String eventName = eventType.getName();
|
||||
if (eventNames.contains(eventName)) {
|
||||
@ -116,11 +116,11 @@ public class TestEventMetadata {
|
||||
}
|
||||
}
|
||||
|
||||
private static void verifyValueDesscriptors(List<ValueDescriptor> fields, Set<String> visitedTypes) {
|
||||
private static void verifyValueDescriptors(List<ValueDescriptor> fields, Set<String> visitedTypes) {
|
||||
for (ValueDescriptor v : fields) {
|
||||
if (!visitedTypes.contains(v.getTypeName())) {
|
||||
visitedTypes.add(v.getTypeName());
|
||||
verifyValueDesscriptors(v.getFields(), visitedTypes);
|
||||
verifyValueDescriptors(v.getFields(), visitedTypes);
|
||||
}
|
||||
verifyValueDescriptor(v);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user