Skip to content

Commit

Permalink
8287113: JFR: Periodic task thread uses period for method sampling ev…
Browse files Browse the repository at this point in the history
…ents

Backport-of: 8122466fbb8e3f3450131895551ec5b832845938
  • Loading branch information
Jaroslav Bachorik committed Jun 21, 2022
1 parent 50c0080 commit f1d3fa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -83,7 +83,7 @@ private void initializeJVMEventTypes() {
// 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));
}
}
Expand Down
Expand Up @@ -327,4 +327,8 @@ public boolean isLargeSize() {
public void setLargeSize() {
largeSize = true;
}

public boolean isMethodSampling() {
return isMethodSampling;
}
}

1 comment on commit f1d3fa9

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.