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/remote/RemoteDebuggerServer.java
/*
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot.debugger.remote;
import java.io.*;
import java.rmi.*;
import java.rmi.server.*;
import java.util.*;
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.tools.*;
/** The implementation of the RemoteDebugger interface. This
delegates to a local debugger */
public class RemoteDebuggerServer extends UnicastRemoteObject
implements RemoteDebugger {
private transient JVMDebugger debugger;
/** This is the required no-arg constructor */
public RemoteDebuggerServer() throws RemoteException {
super();
}
/** This is the constructor used on the machine where the debuggee
process lies that accepts an RMI connector port */
public RemoteDebuggerServer(JVMDebugger debugger, int port) throws RemoteException {
super(port);
this.debugger = debugger;
}
/** This is the constructor used on the machine where the debuggee
process lies */
public RemoteDebuggerServer(JVMDebugger debugger) throws RemoteException {
this(debugger, 0);
}
public String getOS() throws RemoteException {
return debugger.getOS();
}
public String getCPU() throws RemoteException {
return debugger.getCPU();
}
public MachineDescription getMachineDescription() throws RemoteException {
return debugger.getMachineDescription();
}
public long lookupInProcess(String objectName, String symbol) throws RemoteException {
Address addr = debugger.lookup(objectName, symbol);
return addr == null? 0L : debugger.getAddressValue(addr);
}
public ReadResult readBytesFromProcess(long address, long numBytes) throws RemoteException {
return debugger.readBytesFromProcess(address, numBytes);
}
public boolean hasConsole() throws RemoteException {
return debugger.hasConsole();
}
public String getConsolePrompt() throws RemoteException {
return debugger.getConsolePrompt();
}
public String consoleExecuteCommand(String cmd) throws RemoteException {
return debugger.consoleExecuteCommand(cmd);
}
public long getJBooleanSize() throws RemoteException {
return debugger.getJBooleanSize();
}
public long getJByteSize() throws RemoteException {
return debugger.getJByteSize();
}
public long getJCharSize() throws RemoteException {
return debugger.getJCharSize();
}
public long getJDoubleSize() throws RemoteException {
return debugger.getJDoubleSize();
}
public long getJFloatSize() throws RemoteException {
return debugger.getJFloatSize();
}
public long getJIntSize() throws RemoteException {
return debugger.getJIntSize();
}
public long getJLongSize() throws RemoteException {
return debugger.getJLongSize();
}
public long getJShortSize() throws RemoteException {
return debugger.getJShortSize();
}
public long getHeapOopSize() throws RemoteException {
return debugger.getHeapOopSize();
}
public long getNarrowOopBase() throws RemoteException {
return debugger.getNarrowOopBase();
}
public int getNarrowOopShift() throws RemoteException {
return debugger.getNarrowOopShift();
}
public long getKlassPtrSize() throws RemoteException {
return debugger.getHeapOopSize();
}
public long getNarrowKlassBase() throws RemoteException {
return debugger.getNarrowKlassBase();
}
public int getNarrowKlassShift() throws RemoteException {
return debugger.getNarrowKlassShift();
}
public boolean areThreadsEqual(long addrOrId1, boolean isAddress1,
long addrOrId2, boolean isAddress2) throws RemoteException {
ThreadProxy t1 = getThreadProxy(addrOrId1, isAddress1);
ThreadProxy t2 = getThreadProxy(addrOrId2, isAddress2);
return t1.equals(t2);
}
public int getThreadHashCode(long addrOrId, boolean isAddress) throws RemoteException {
ThreadProxy t = getThreadProxy(addrOrId, isAddress);
return t.hashCode();
}
public long[] getThreadIntegerRegisterSet(long addrOrId, boolean isAddress) throws RemoteException {
ThreadProxy t = getThreadProxy(addrOrId, isAddress);
ThreadContext tc = t.getContext();
long[] regs = new long[tc.getNumRegisters()];
for (int r = 0; r < regs.length; r++) {
regs[r] = tc.getRegister(r);
}
return regs;
}
private ThreadProxy getThreadProxy(long addrOrId, boolean isAddress) throws DebuggerException {
if (isAddress) {
Address addr = debugger.parseAddress("0x" + Long.toHexString(addrOrId));
return debugger.getThreadForIdentifierAddress(addr);
} else {
return debugger.getThreadForThreadId(addrOrId);
}
}
@Override
public String execCommandOnServer(String command, Map<String, Object> options) throws RemoteException {
if (command.equals("findsym")) {
return debugger.findSymbol((String)options.get("symbol"));
} else {
ByteArrayOutputStream bout = new ByteArrayOutputStream();
try (var out = new PrintStream(bout)) {
if (command.equals("pmap")) {
(new PMap(debugger)).run(out, debugger);
} else if (command.equals("pstack")) {
PStack pstack = new PStack(debugger);
pstack.setVerbose(false);
pstack.setConcurrentLocks((boolean)options.get("concurrentLocks"));
pstack.run(out, debugger);
} else {
throw new DebuggerException(command + " is not supported in this debugger");
}
}
return bout.toString();
}
}
}
⏎ sun/jvm/hotspot/debugger/remote/RemoteDebuggerServer.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, ≈96🔥, 0💬
Popular Posts:
What Is commons-fileupload-1.3.3 .jar?commons-fileupload-1.3.3 .jaris the JAR file for Apache Common...
Where to find answers to frequently asked questions on Downloading and Installing ojdbc.jar - JDBC D...
Apache Commons CLI Source Code Files are provided in the source package file commons-cli-1.5.0-sourc. ..
This package is the backport of java.util.concurrent API, introduced in Java 5.0 and further refined...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .