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.internal.jvmstat.jmod - Internal JVM Stat Module
JDK 17 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 17 Internal Jvmstat module.
JDK 17 Internal JVM Stat module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.internal.jvmstat.jmod.
JDK 17 Internal JVM Stat module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Internal JVM Stat module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.internal.jvmstat.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/jvmstat/perfdata/monitor/v1_0/PerfDataBufferPrologue.java
/* * Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.jvmstat.perfdata.monitor.v1_0; import sun.jvmstat.monitor.*; import sun.jvmstat.perfdata.monitor.*; import java.nio.*; /** * Class representing the 1.0 version of the HotSpot PerfData instrumentation * buffer header. * <p> * The PerfDataBufferPrologue2_0 class supports parsing of the version * specific portions of the PerfDataPrologue C structure: * <pre> * typedef struct { * ... // handled by superclass * jint used; // number of PerfData memory bytes used * jint overflow; // number of bytes of overflow * jlong mod_time_stamp; // time stamp of the last structural modification * } PerfDataPrologue * </pre> * * @author Brian Doherty * @since 1.5 */ public class PerfDataBufferPrologue extends AbstractPerfDataBufferPrologue { private static final int SUPPORTED_MAJOR_VERSION = 1; private static final int SUPPORTED_MINOR_VERSION = 0; /* * the following constants must match the field offsets and sizes * in the PerfDataPrologue structure in perfMemory.hpp */ static final int PERFDATA_PROLOG_USED_OFFSET=8; static final int PERFDATA_PROLOG_USED_SIZE=4; // sizeof(int) static final int PERFDATA_PROLOG_OVERFLOW_OFFSET=12; static final int PERFDATA_PROLOG_OVERFLOW_SIZE=4; // sizeof(int) static final int PERFDATA_PROLOG_MODTIMESTAMP_OFFSET=16; static final int PERFDATA_PROLOG_MODTIMESTAMP_SIZE=8; // sizeof(long) static final int PERFDATA_PROLOG_SIZE=24; // sizeof(struct PerfDataProlog) // counter names for prologue psuedo counters static final String PERFDATA_BUFFER_SIZE_NAME = "sun.perfdata.size"; static final String PERFDATA_BUFFER_USED_NAME = "sun.perfdata.used"; static final String PERFDATA_OVERFLOW_NAME = "sun.perfdata.overflow"; static final String PERFDATA_MODTIMESTAMP_NAME = "sun.perfdata.timestamp"; /** * Create an instance of PerfDataBufferPrologue from the given * ByteBuffer object. * * @param byteBuffer the buffer containing the binary header data */ public PerfDataBufferPrologue(ByteBuffer byteBuffer) throws MonitorException { super(byteBuffer); assert ((getMajorVersion() == 1) && (getMinorVersion() == 0)); } /** * {@inheritDoc} */ public boolean supportsAccessible() { return false; } /** * {@inheritDoc} */ public boolean isAccessible() { return true; } /** * Get the utilization of the instrumentation memory buffer. * * @return int - the utilization of the buffer */ public int getUsed() { byteBuffer.position(PERFDATA_PROLOG_USED_OFFSET); return byteBuffer.getInt(); } /** * Get the size of the instrumentation memory buffer. * * @return int - the size of the buffer */ public int getBufferSize() { return byteBuffer.capacity(); } /** * Get the buffer overflow amount. This value is non-zero if the * HotSpot JVM has overflowed the instrumentation memory buffer. * The target JVM can be restarted with -XX:PerfDataMemSize=X to * create a larger memory buffer. * * @return int - the size of the buffer */ public int getOverflow() { byteBuffer.position(PERFDATA_PROLOG_OVERFLOW_OFFSET); return byteBuffer.getInt(); } /** * Get the time of last modification for the instrumentation * memory buffer. This method returns the time, as ticks since the * start of the target JVM, of the last structural modification to * the instrumentation buffer. Structural modifications correspond to * the addition or deletion of instrumentation objects. Updates to * counter values are not structural modifications. */ public long getModificationTimeStamp() { byteBuffer.position(PERFDATA_PROLOG_MODTIMESTAMP_OFFSET); return byteBuffer.getLong(); } /** * {@inheritDoc} */ public int getSize() { return PERFDATA_PROLOG_SIZE; // sizeof(struct PerfDataProlog) } /** * Return an IntBuffer that accesses the used value. This is used * to create a Monitor object for this value. * * @return IntBuffer - a ByteBuffer that accesses the used value * in the instrumentation buffer header. * @see #getUsed() */ public IntBuffer usedBuffer() { byteBuffer.position(PERFDATA_PROLOG_USED_OFFSET); IntBuffer ib = byteBuffer.asIntBuffer(); ib.limit(1); return ib; } /** * Return an IntBuffer that accesses the size value. This is used * to create a Monitor object for this value. * * @return IntBuffer - a ByteBuffer that accesses the size value * in the instrumentation buffer header. * @see #getBufferSize() */ public IntBuffer sizeBuffer() { IntBuffer ib = IntBuffer.allocate(1); ib.put(byteBuffer.capacity()); return ib; } /** * Return an IntBuffer that accesses the overflow value. This is used * to create a Monitor object for this value. * * @return IntBuffer - a ByteBuffer that accesses the overflow value * in the instrumentation buffer header. * @see #getOverflow() */ public IntBuffer overflowBuffer() { byteBuffer.position(PERFDATA_PROLOG_OVERFLOW_OFFSET); IntBuffer ib = byteBuffer.asIntBuffer(); ib.limit(1); return ib; } /** * Return an LongBuffer that accesses the modification timestamp value. * This is used* to create a Monitor object for this value. * * @return LongBuffer - a ByteBuffer that accesses the modification time * stamp value in the instrumentation buffer header. * @see #getModificationTimeStamp() */ public LongBuffer modificationTimeStampBuffer() { byteBuffer.position(PERFDATA_PROLOG_MODTIMESTAMP_OFFSET); LongBuffer lb = byteBuffer.asLongBuffer(); lb.limit(1); return lb; } }
⏎ sun/jvmstat/perfdata/monitor/v1_0/PerfDataBufferPrologue.java
Or download all of them as a single archive file:
File name: jdk.internal.jvmstat-17.0.5-src.zip File size: 89372 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.internal.le.jmod - Internal Line Editing Module
2023-08-25, 3642👍, 0💬
Popular Posts:
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
What Is poi-ooxml-5.2.3.jar? poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which...
commons-fileupload-1.3.3 -sources.jaris the source JAR file for Apache Commons FileUpload 1.3., whic...
Java Servlet 3.0 Specification API. JAR File Size and Download Location: File name: servlet-api.jar,...
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...