Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 11 jdk.hotspot.agent.jmod - Hotspot Agent Module
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module.
JDK 11 Hotspot Agent module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.hotspot.agent.jmod.
JDK 11 Hotspot Agent module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Hotspot Agent module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.hotspot.agent.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/jvm/hotspot/debugger/Page.java
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot.debugger;
/** A class representing an arbitrary-sized page which can be linked
into a list. Used by the PageCache. */
public class Page {
private long baseAddress;
private byte[] data;
private Page prev;
private Page next;
private long unmappedPageLength;
/** The length of the data[] array implicitly defines the size of the
page. */
public Page(long baseAddress, byte[] data) {
this.baseAddress = baseAddress;
this.data = data;
}
/** This constructor creates an "unmapped" page of the specified
length. Fetches from this page will cause -1 to be inserted into
the destination buffer. */
public Page(long baseAddress, long unmappedPageLength) {
this.baseAddress = baseAddress;
this.unmappedPageLength = unmappedPageLength;
}
public long getBaseAddress() {
return baseAddress;
}
public long getSize() {
if (data != null) {
return data.length;
} else {
return unmappedPageLength;
}
}
/** Indicates whether this page is mapped in the remote process's
address space */
public boolean isMapped() {
return (data != null);
}
public Page getPrev() {
return prev;
}
public void setPrev(Page prev) {
this.prev = prev;
}
public Page getNext() {
return next;
}
public void setNext(Page next) {
this.next = next;
}
/** Throws IndexOutOfBoundsException if the number of bytes
requested is greater than the page size, or if the start address
doesn't fall within the page. There are no guarantees on whether
any data was actually fetched if an IndexOutOfBoundsException is
thrown. If this page is unmapped, -1 is returned for all
addresses on this page. */
public void getData(long startAddress, long numBytes,
int[] destBuf, long destBufOffset)
throws IndexOutOfBoundsException {
int startOffset = (int) (startAddress - baseAddress);
if ((data == null) &&
((startOffset < 0) || ((startOffset + numBytes) > (baseAddress + unmappedPageLength)))) {
throw new IndexOutOfBoundsException("startAddress = " + startAddress +
", baseAddress = " + baseAddress +
", unmappedPageLength = " + unmappedPageLength);
}
for (int i = 0; i < (int) numBytes; ++i) {
if (data != null) {
destBuf[i + (int) destBufOffset] = ((int) (data[i + startOffset]) & 0x000000FF);
} else {
destBuf[i + (int) destBufOffset] = -1;
}
}
}
/** Throws IndexOutOfBoundsException if the number of bytes
requested is greater than the page size, or if the start address
doesn't fall within the page. There are no guarantees on whether
any data was actually fetched if an IndexOutOfBoundsException is
thrown. If this page is unmapped, throws a RuntimeException;
this should be watched for at higher levels. */
public void getDataAsBytes(long startAddress, long numBytes,
byte[] destBuf, long destBufOffset)
throws IndexOutOfBoundsException {
long startOffset = startAddress - baseAddress;
if (data == null) {
throw new RuntimeException("Bug in PageCache; should not fetch from unmapped pages using getDataAsBytes");
}
System.arraycopy(data, (int) startOffset, destBuf, (int) destBufOffset, (int) numBytes);
}
public boolean getBoolean(long address) {
return (getByte(address) != 0);
}
public byte getByte(long address) {
return data[(int) address - (int) baseAddress];
}
public short getShort(long address, boolean bigEndian) {
int start = (int) address - (int) baseAddress;
if (bigEndian) {
return (short)
(((data[start + 1] & 0xFF)) |
((data[start] & 0xFF) << 8));
} else {
return (short)
(((data[start + 1] & 0xFF) << 8) |
((data[start] & 0xFF)));
}
}
public char getChar(long address, boolean bigEndian) {
return (char) getShort(address, bigEndian);
}
public int getInt(long address, boolean bigEndian) {
int start = (int) address - (int) baseAddress;
if (bigEndian) {
return
((data[start + 3] & 0xFF)) |
((data[start + 2] & 0xFF) << 8) |
((data[start + 1] & 0xFF) << 16) |
((data[start] & 0xFF) << 24);
} else {
return
((data[start + 3] & 0xFF) << 24) |
((data[start + 2] & 0xFF) << 16) |
((data[start + 1] & 0xFF) << 8) |
((data[start] & 0xFF));
}
}
public long getLong(long address, boolean bigEndian) {
int start = (int) address - (int) baseAddress;
if (bigEndian) {
return
((data[start + 7] & 0xFFL)) |
((data[start + 6] & 0xFFL) << 8) |
((data[start + 5] & 0xFFL) << 16) |
((data[start + 4] & 0xFFL) << 24) |
((data[start + 3] & 0xFFL) << 32) |
((data[start + 2] & 0xFFL) << 40) |
((data[start + 1] & 0xFFL) << 48) |
((data[start] & 0xFFL) << 56);
} else {
return
((data[start + 7] & 0xFFL) << 56) |
((data[start + 6] & 0xFFL) << 48) |
((data[start + 5] & 0xFFL) << 40) |
((data[start + 4] & 0xFFL) << 32) |
((data[start + 3] & 0xFFL) << 24) |
((data[start + 2] & 0xFFL) << 16) |
((data[start + 1] & 0xFFL) << 8) |
((data[start] & 0xFFL));
}
}
public float getFloat(long address, boolean bigEndian) {
return Float.intBitsToFloat(getInt(address, bigEndian));
}
public double getDouble(long address, boolean bigEndian) {
return Double.longBitsToDouble(getLong(address, bigEndian));
}
}
⏎ sun/jvm/hotspot/debugger/Page.java
Or download all of them as a single archive file:
File name: jdk.hotspot.agent-11.0.1-src.zip File size: 1243786 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.httpserver.jmod - HTTP Server Module
2020-02-29, ≈312🔥, 0💬
Popular Posts:
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...
How to download and install xml-commons External Source Package? The source package contains Java so...
The Java Naming and Directory Interface (JNDI) is part of the Java platform, providing applications ...
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...
XML Serializer, Release 2.7.1, allows you to write out XML, HTML etc. as a stream of characters from...