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 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/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-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, 131903👍, 0💬
Popular Posts:
JRE 5 sunjce_provider.jar is the JAR file for JRE 5 Sun JCE Provider, which provides implementations...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
ZooKeeper is a centralized service for maintaining configuration information, naming, providing dist...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...