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.management.jfr.jmod - Management JFR Module
JDK 17 jdk.management.jfr.jmod is the JMOD file for JDK 17 Management Jfr module.
JDK 17 Management JFR module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.management.jfr.jmod.
JDK 17 Management JFR module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Management JFR module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.management.jfr.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/management/jfr/FileDump.java
/* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.management.jfr; import java.io.IOException; import java.nio.channels.FileChannel; import java.nio.file.Path; import java.nio.file.StandardOpenOption; import java.util.ArrayDeque; import java.util.Queue; import jdk.management.jfr.DiskRepository.DiskChunk; final class FileDump { private final Queue<DiskChunk> chunks = new ArrayDeque<>(); private final long stopTimeMillis; private boolean complete; FileDump(long stopTimeMillis) { this.stopTimeMillis = stopTimeMillis; } public synchronized void add(DiskChunk dc) { if (isComplete()) { return; } dc.acquire(); chunks.add(dc); long endMillis = dc.endTimeNanos / 1_000_000; if (endMillis >= stopTimeMillis) { setComplete(); } } public synchronized boolean isComplete() { return complete; } public synchronized void setComplete() { complete = true; this.notifyAll(); } public synchronized void close() { for (DiskChunk dc : chunks) { dc.release(); } chunks.clear(); complete = true; } private DiskChunk oldestChunk() throws InterruptedException { while (true) { synchronized (this) { if (!chunks.isEmpty()) { return chunks.poll(); } if (complete) { return null; } this.wait(); } } } public void write(Path path) throws IOException, InterruptedException { try (FileChannel out = FileChannel.open(path, StandardOpenOption.CREATE_NEW, StandardOpenOption.WRITE)) { DiskChunk chunk = null; while ((chunk = oldestChunk()) != null) { try (FileChannel in = FileChannel.open(chunk.path(), StandardOpenOption.READ)) { in.transferTo(0, in.size(), out); } } } finally { close(); } } }
⏎ jdk/management/jfr/FileDump.java
Or download all of them as a single archive file:
File name: jdk.management.jfr-17.0.5-src.zip File size: 34348 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.naming.dns.jmod - Naming DNS Module
⇐ JDK 17 jdk.management.agent.jmod - Management Agent Module
2023-07-29, 963👍, 0💬
Popular Posts:
JDK 17 jdk.localedata.jmod is the JMOD file for JDK 17 Localedata module. JDK 17 Locale Data module ...
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
How to display types defined in an XML Schema file with the xs\QueryXS.java provided in the Apache X...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
The JDT project provides the tool plug-ins that implement a Java IDE supporting the development of a...