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 java.management.jmod - Management Module
JDK 17 java.management.jmod is the JMOD file for JDK 17 Management module.
JDK 17 Management module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.management.jmod.
JDK 17 Management module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Management module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.management.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/management/counter/perf/Prologue.java
/* * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.management.counter.perf; import sun.management.counter.*; import java.nio.*; class Prologue { // these constants should match their #define counterparts in vmdata.hpp private static final byte PERFDATA_BIG_ENDIAN = 0; private static final byte PERFDATA_LITTLE_ENDIAN = 1; private static final int PERFDATA_MAGIC = 0xcafec0c0; private class PrologueFieldOffset { private static final int SIZEOF_BYTE = 1; private static final int SIZEOF_INT = 4; private static final int SIZEOF_LONG = 8; private static final int MAGIC_SIZE = SIZEOF_INT; private static final int BYTE_ORDER_SIZE = SIZEOF_BYTE; private static final int MAJOR_SIZE = SIZEOF_BYTE; private static final int MINOR_SIZE = SIZEOF_BYTE; private static final int ACCESSIBLE_SIZE = SIZEOF_BYTE; private static final int USED_SIZE = SIZEOF_INT; private static final int OVERFLOW_SIZE = SIZEOF_INT; private static final int MOD_TIMESTAMP_SIZE = SIZEOF_LONG; private static final int ENTRY_OFFSET_SIZE = SIZEOF_INT; private static final int NUM_ENTRIES_SIZE = SIZEOF_INT; // these constants must match the field offsets and sizes // in the PerfDataPrologue structure in perfMemory.hpp static final int MAGIC = 0; static final int BYTE_ORDER = MAGIC + MAGIC_SIZE; static final int MAJOR_VERSION = BYTE_ORDER + BYTE_ORDER_SIZE; static final int MINOR_VERSION = MAJOR_VERSION + MAJOR_SIZE; static final int ACCESSIBLE = MINOR_VERSION + MINOR_SIZE; static final int USED = ACCESSIBLE + ACCESSIBLE_SIZE; static final int OVERFLOW = USED + USED_SIZE; static final int MOD_TIMESTAMP = OVERFLOW + OVERFLOW_SIZE; static final int ENTRY_OFFSET = MOD_TIMESTAMP + MOD_TIMESTAMP_SIZE; static final int NUM_ENTRIES = ENTRY_OFFSET + ENTRY_OFFSET_SIZE; static final int PROLOGUE_2_0_SIZE = NUM_ENTRIES + NUM_ENTRIES_SIZE; } private ByteBuffer header; private int magic; Prologue(ByteBuffer b) { this.header = b.duplicate(); // the magic number is always stored in big-endian format // save and restore the buffer's initial byte order around // the fetch of the data. header.order(ByteOrder.BIG_ENDIAN); header.position(PrologueFieldOffset.MAGIC); magic = header.getInt(); // the magic number is always stored in big-endian format if (magic != PERFDATA_MAGIC) { throw new InstrumentationException("Bad Magic: " + Integer.toHexString(getMagic())); } // set the buffer's byte order according to the value of its // byte order field. header.order(getByteOrder()); // Check version int major = getMajorVersion(); int minor = getMinorVersion(); if (major < 2) { throw new InstrumentationException("Unsupported version: " + major + "." + minor); } // Currently, only support 2.0 version. header.limit(PrologueFieldOffset.PROLOGUE_2_0_SIZE); } public int getMagic() { return magic; } public int getMajorVersion() { header.position(PrologueFieldOffset.MAJOR_VERSION); return (int)header.get(); } public int getMinorVersion() { header.position(PrologueFieldOffset.MINOR_VERSION); return (int)header.get(); } public ByteOrder getByteOrder() { header.position(PrologueFieldOffset.BYTE_ORDER); byte byte_order = header.get(); if (byte_order == PERFDATA_BIG_ENDIAN) { return ByteOrder.BIG_ENDIAN; } else { return ByteOrder.LITTLE_ENDIAN; } } public int getEntryOffset() { header.position(PrologueFieldOffset.ENTRY_OFFSET); return header.getInt(); } // The following fields are updated asynchronously // while they are accessed by these methods. public int getUsed() { header.position(PrologueFieldOffset.USED); return header.getInt(); } public int getOverflow() { header.position(PrologueFieldOffset.OVERFLOW); return header.getInt(); } public long getModificationTimeStamp() { header.position(PrologueFieldOffset.MOD_TIMESTAMP); return header.getLong(); } public int getNumEntries() { header.position(PrologueFieldOffset.NUM_ENTRIES); return header.getInt(); } public boolean isAccessible() { header.position(PrologueFieldOffset.ACCESSIBLE); byte b = header.get(); return (b == 0 ? false : true); } }
⏎ sun/management/counter/perf/Prologue.java
Or download all of them as a single archive file:
File name: java.management-17.0.5-src.zip File size: 850134 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.management.rmi.jmod - Management RMI Module
2023-09-23, 11314👍, 0💬
Popular Posts:
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
The Apache FontBox library is an open source Java tool to obtain low level information from font fil...
Apache Log4j provides the interface that applications should code to and provides the adapter compon...
commons-collections4-4.4 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...