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 17 jdk.hotspot.agent.jmod - Hotspot Agent Module
JDK 17 jdk.hotspot.agent.jmod is the JMOD file for JDK 17 Hotspot Agent module.
JDK 17 Hotspot Agent module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.hotspot.agent.jmod.
JDK 17 Hotspot Agent module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Hotspot Agent module source code files are stored in \fyicenter\jdk-17.0.5\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/windbg/DLL.java
/*
* Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot.debugger.windbg;
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.debugger.win32.coff.*;
import sun.jvm.hotspot.debugger.cdbg.*;
import sun.jvm.hotspot.utilities.Assert;
import sun.jvm.hotspot.utilities.memo.*;
/** Provides a simple wrapper around the COFF library which handles
relocation. A DLL can represent either a DLL or an EXE file. */
public class DLL implements LoadObject {
public DLL(WindbgDebugger dbg, String filename, long size, Address relocation) throws COFFException {
this.dbg = dbg;
fullPathName = filename;
this.size = size;
file = new MemoizedObject() {
public Object computeValue() {
return COFFFileParser.getParser().parse(fullPathName);
}
};
addr = relocation;
}
/** This constructor was originally used to fetch the DLL's name out
of the target process to match it up with the known DLL names,
before the fetching of the DLL names and bases was folded into
one command. It is no longer used. If it is used, getName() will
return null and getSize() will return 0. */
public DLL(Address base) throws COFFException {
this.addr = base;
file = new MemoizedObject() {
public Object computeValue() {
return COFFFileParser.getParser().parse(new AddressDataSource(addr));
}
};
}
/** Indicates whether this is really a DLL or actually a .EXE
file. */
public boolean isDLL() {
return getFile().getHeader().hasCharacteristic(Characteristics.IMAGE_FILE_DLL);
}
/** Look up a symbol; returns absolute address or null if symbol was
not found. */
public Address lookupSymbol(String symbol) throws COFFException {
if (!isDLL()) {
return null;
}
ExportDirectoryTable exports = getExportDirectoryTable();
return lookupSymbol(symbol, exports,
0, exports.getNumberOfNamePointers() - 1);
}
public Address getBase() {
return addr;
}
/** Returns the full path name of this DLL/EXE, or null if this DLL
object was created by parsing the target process's address
space. */
public String getName() {
return fullPathName;
}
public long getSize() {
return size;
}
public CDebugInfoDataBase getDebugInfoDataBase() throws DebuggerException {
if (db != null) {
return db;
}
// Try to parse
if (dbg == null) {
return null; // Need WindbgDebugger
}
if (Assert.ASSERTS_ENABLED) {
Assert.that(fullPathName != null, "Need full path name to build debug info database");
}
db = new WindbgCDebugInfoBuilder(dbg).buildDataBase(fullPathName, addr);
return db;
}
public BlockSym debugInfoForPC(Address pc) throws DebuggerException {
CDebugInfoDataBase db = getDebugInfoDataBase();
if (db == null) {
return null;
}
return db.debugInfoForPC(pc);
}
public ClosestSymbol closestSymbolToPC(Address pcAsAddr) throws DebuggerException {
ExportDirectoryTable exports = getExportDirectoryTable();
if (exports == null) {
return null;
}
String name = null;
long pc = dbg.getAddressValue(pcAsAddr);
long diff = Long.MAX_VALUE;
long base = dbg.getAddressValue(addr);
for (int i = 0; i < exports.getNumberOfNamePointers(); i++) {
if (!exports.isExportAddressForwarder(exports.getExportOrdinal(i))) {
long tmp = base + (exports.getExportAddress(exports.getExportOrdinal(i)) & 0xFFFFFFFF);
if ((tmp <= pc) && ((pc - tmp) < diff)) {
diff = pc - tmp;
name = exports.getExportName(i);
}
}
}
if (name == null) {
return null;
}
return new ClosestSymbol(name, diff);
}
public LineNumberInfo lineNumberForPC(Address pc) throws DebuggerException {
CDebugInfoDataBase db = getDebugInfoDataBase();
if (db == null) {
return null;
}
return db.lineNumberForPC(pc);
}
public void close() {
getFile().close();
file = null;
}
//----------------------------------------------------------------------
// Internals only below this point
//
private COFFFile getFile() {
return (COFFFile) file.getValue();
}
private Address lookupSymbol(String symbol, ExportDirectoryTable exports,
int loIdx, int hiIdx) {
do {
int curIdx = ((loIdx + hiIdx) >> 1);
String cur = exports.getExportName(curIdx);
if (symbol.equals(cur)) {
return addr.addOffsetTo(
((long) exports.getExportAddress(exports.getExportOrdinal(curIdx))) & 0xFFFFFFFFL
);
}
if (symbol.compareTo(cur) < 0) {
if (hiIdx == curIdx) {
hiIdx = curIdx - 1;
} else {
hiIdx = curIdx;
}
} else {
if (loIdx == curIdx) {
loIdx = curIdx + 1;
} else {
loIdx = curIdx;
}
}
} while (loIdx <= hiIdx);
return null;
}
private ExportDirectoryTable getExportDirectoryTable() {
return
getFile().getHeader().getOptionalHeader().getDataDirectories().getExportDirectoryTable();
}
private WindbgDebugger dbg;
private String fullPathName;
private long size;
// MemoizedObject contains a COFFFile
private MemoizedObject file;
// Base address of module in target process
private Address addr;
// Debug info database for this DLL
private CDebugInfoDataBase db;
}
⏎ sun/jvm/hotspot/debugger/windbg/DLL.java
Or download all of them as a single archive file:
File name: jdk.hotspot.agent-17.0.5-src.zip File size: 1238587 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.httpserver.jmod - HTTP Server Module
2023-10-04, ≈220🔥, 0💬
Popular Posts:
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
JSP(tm) Standard Tag Library 1.1 implementation - Jakarta Taglibs hosts the Standard Taglib 1.1, an ...
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...
What JAR files are required to run sax\Writer.java provided in the Apache Xerces package? 1 JAR file...
JBrowser Source Code Files are provided in the source package file. You can download JBrowser source...