Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ public final class EventConfigurations {
public static final EventConfiguration FILE_FORCE = Utils.getConfiguration(FileForceEvent.class);
public static final EventConfiguration ERROR_THROWN = Utils.getConfiguration(ErrorThrownEvent.class);
public static final EventConfiguration EXCEPTION_THROWN = Utils.getConfiguration(ExceptionThrownEvent.class);

public static void initialize() {
// This method is intentionally empty. It is used to initialize the
// event configurations, i.e. ensure that this class's static
// initializer is run.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import jdk.jfr.RecordingState;
import jdk.jfr.events.ActiveRecordingEvent;
import jdk.jfr.events.ActiveSettingEvent;
import jdk.jfr.events.EventConfigurations;
import jdk.jfr.internal.SecuritySupport.SafePath;
import jdk.jfr.internal.SecuritySupport.SecureRecorderListener;
import jdk.jfr.internal.consumer.EventLog;
Expand Down Expand Up @@ -83,6 +84,7 @@ public PlatformRecorder() throws Exception {
Logger.log(JFR_SYSTEM, INFO, "Created native");
JDKEvents.initialize();
Logger.log(JFR_SYSTEM, INFO, "Registered JDK events");
EventConfigurations.initialize();
JDKEvents.addInstrumentation();
startDiskMonitor();
shutdownHook = SecuritySupport.createThreadWitNoPermissions("JFR Shutdown Hook", new ShutdownHook(this));
Expand Down