Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 jdk.jfr.jmod - JFR Module
JDK 17 jdk.jfr.jmod is the JMOD file for JDK 17 JFR module.
JDK 17 JFR module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jfr.jmod.
JDK 17 JFR module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JFR module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jfr.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jfr/internal/OldObjectSample.java
/* * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jfr.internal; import java.util.HashMap; import java.util.List; import java.util.Map; import jdk.jfr.Enabled; import jdk.jfr.RecordingState; import jdk.jfr.internal.settings.CutoffSetting; import jdk.jfr.internal.test.WhiteBox; // The Old Object event could have been implemented as a periodic event, but // due to chunk rotations and how settings are calculated when multiple recordings // are running at the same time, it would lead to unacceptable overhead. // // Instead, the event is only emitted before a recording stops and // if that recording has the event enabled. // // This requires special handling and the purpose of this class is to provide that // public final class OldObjectSample { private static final String EVENT_NAME = Type.EVENT_NAME_PREFIX + "OldObjectSample"; private static final String OLD_OBJECT_CUTOFF = EVENT_NAME + "#" + Cutoff.NAME; private static final String OLD_OBJECT_ENABLED = EVENT_NAME + "#" + Enabled.NAME; // Emit if old object is enabled in recording with cutoff for that recording public static void emit(PlatformRecording recording) { if (isEnabled(recording)) { long nanos = CutoffSetting.parseValueSafe(recording.getSettings().get(OLD_OBJECT_CUTOFF)); long ticks = Utils.nanosToTicks(nanos); emit(ticks); } } // Emit if old object is enabled for at least one recording, and use the largest // cutoff for an enabled recording public static void emit(List<PlatformRecording> recordings, Boolean pathToGcRoots) { boolean enabled = false; long cutoffNanos = Boolean.TRUE.equals(pathToGcRoots) ? Long.MAX_VALUE : 0L; for (PlatformRecording r : recordings) { if (r.getState() == RecordingState.RUNNING) { if (isEnabled(r)) { enabled = true; long c = CutoffSetting.parseValueSafe(r.getSettings().get(OLD_OBJECT_CUTOFF)); cutoffNanos = Math.max(c, cutoffNanos); } } } if (enabled) { long ticks = Utils.nanosToTicks(cutoffNanos); emit(ticks); } } private static void emit(long ticks) { boolean emitAll = WhiteBox.getWriteAllObjectSamples(); boolean skipBFS = WhiteBox.getSkipBFS(); JVM.getJVM().emitOldObjectSamples(ticks, emitAll, skipBFS); } public static void updateSettingPathToGcRoots(Map<String, String> s, Boolean pathToGcRoots) { if (pathToGcRoots != null) { s.put(OLD_OBJECT_CUTOFF, pathToGcRoots ? "infinity" : "0 ns"); } } public static Map<String, String> createSettingsForSnapshot(PlatformRecording recording, Boolean pathToGcRoots) { Map<String, String> settings = new HashMap<>(recording.getSettings()); updateSettingPathToGcRoots(settings, pathToGcRoots); return settings; } private static boolean isEnabled(PlatformRecording r) { Map<String, String> settings = r.getSettings(); String s = settings.get(OLD_OBJECT_ENABLED); return "true".equals(s); } }
⏎ jdk/jfr/internal/OldObjectSample.java
Or download all of them as a single archive file:
File name: jdk.jfr-17.0.5-src.zip File size: 363343 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jlink.jmod - JLink Tool
2023-04-17, 8906👍, 0💬
Popular Posts:
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...
What Is XMLBeans xbean.jar 2.6.0? XMLBeans xbean.jar 2.6.0 is the JAR file for Apache XMLBeans 2.6.0...
JSP(tm) Standard Tag Library 1.1 implementation - Jakarta Taglibs hosts the Standard Taglib 1.1, an ...
What JAR files are required to run dom\Writer.java provided in the Apache Xerces package? 3 JAR file...
Where to find answers to frequently asked questions on Download and Installing of Older Versions? He...