8287113: JFR: Periodic task thread uses period for method sampling events
Reviewed-by: jbachorik
This commit is contained in:
parent
940e94f194
commit
8122466fbb
@ -85,7 +85,7 @@ public final class MetadataRepository {
|
||||
// annotations, such as Period and Threshold.
|
||||
if (pEventType.hasPeriod()) {
|
||||
pEventType.setEventHook(true);
|
||||
if (!(Type.EVENT_NAME_PREFIX + "ExecutionSample").equals(type.getName())) {
|
||||
if (!pEventType.isMethodSampling()) {
|
||||
requestHooks.add(new RequestHook(pEventType));
|
||||
}
|
||||
}
|
||||
|
@ -327,4 +327,8 @@ public final class PlatformEventType extends Type {
|
||||
public void setLargeSize() {
|
||||
largeSize = true;
|
||||
}
|
||||
|
||||
public boolean isMethodSampling() {
|
||||
return isMethodSampling;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user