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/runtime/InterpretedVFrame.java
/*
* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot.runtime;
import java.util.*;
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.interpreter.*;
import sun.jvm.hotspot.oops.*;
import sun.jvm.hotspot.utilities.*;
public class InterpretedVFrame extends JavaVFrame {
/** JVM state */
public Method getMethod() {
return getFrame().getInterpreterFrameMethod();
}
public StackValueCollection getLocals() {
Method m = getMethod();
int length = (int) m.getMaxLocals();
if (m.isNative()) {
// If the method is native, getMaxLocals is not telling the truth.
// maxlocals then equals the size of parameters
length = (int) m.getSizeOfParameters();
}
StackValueCollection result = new StackValueCollection(length);
// Get oopmap describing oops and int for current bci
OopMapCacheEntry oopMask = getMethod().getMaskFor(getBCI());
// handle locals
for(int i = 0; i < length; i++) {
// Find stack location
Address addr = addressOfLocalAt(i);
// Depending on oop/int put it in the right package
StackValue sv;
if (oopMask.isOop(i)) {
// oop value
sv = new StackValue(addr.getOopHandleAt(0), 0);
} else {
// integer
// Fetch a signed integer the size of a stack slot
sv = new StackValue(addr.getCIntegerAt(0, VM.getVM().getAddressSize(), false));
}
result.add(sv);
}
return result;
}
public StackValueCollection getExpressions() {
int length = getFrame().getInterpreterFrameExpressionStackSize();
if (getMethod().isNative()) {
// If the method is native, there is no expression stack
length = 0;
}
int nofLocals = (int) getMethod().getMaxLocals();
StackValueCollection result = new StackValueCollection(length);
// Get oopmap describing oops and int for current bci
OopMapCacheEntry oopMask = getMethod().getMaskFor(getBCI());
for(int i = 0; i < length; i++) {
// Find stack location
Address addr = addressOfExpressionStackAt(i);
// Depending on oop/int put it in the right package
StackValue sv;
if (oopMask.isOop(i + nofLocals)) {
// oop value
sv = new StackValue(addr.getOopHandleAt(0), 0);
} else {
// integer
// Fetch a signed integer the size of a stack slot
sv = new StackValue(addr.getCIntegerAt(0, VM.getVM().getAddressSize(), false));
}
result.add(sv);
}
return result;
}
/** Returns List<MonitorInfo> */
public List<MonitorInfo> getMonitors() {
List<MonitorInfo> result = new ArrayList<>(5);
for (BasicObjectLock current = getFrame().interpreterFrameMonitorEnd();
current.address().lessThan(getFrame().interpreterFrameMonitorBegin().address());
current = getFrame().nextMonitorInInterpreterFrame(current)) {
result.add(new MonitorInfo(current.obj(), current.lock(), false, false));
}
return result;
}
/** Test operation */
public boolean isInterpretedFrame() { return true; }
/** Package-internal constructor */
InterpretedVFrame(Frame fr, RegisterMap regMap, JavaThread thread) {
super(fr, regMap, thread);
}
/** Accessor for Byte Code Index (NOTE: access to BCP is not allowed
in this system; see Frame.java) */
public int getBCI() {
return getFrame().getInterpreterFrameBCI();
}
/** Setter for Byte Code Index */
// FIXME: not yet implementable
// public void setBCI(int bci) {
// getFrame().setInterpreterFrameBCI(bci);
// }
public void verify() {
}
//--------------------------------------------------------------------------------
// Internals only below this point
//
private Address addressOfLocalAt(int index) {
if (Assert.ASSERTS_ENABLED) {
Assert.that(getFrame().isInterpretedFrame(), "frame should be an interpreted frame");
}
return fr.addressOfInterpreterFrameLocal(index);
}
private Address addressOfExpressionStackAt(int index) {
return fr.addressOfInterpreterFrameExpressionStackSlot(index);
}
}
⏎ sun/jvm/hotspot/runtime/InterpretedVFrame.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, ≈414🔥, 0💬
Popular Posts:
JDK 11 java.sql.jmod is the JMOD file for JDK 11 SQL (Structured Query Language) module. JDK 11 SQL ...
What Is jms.jar? I heard it's related to JMS (Java Message Service) 1.1? The if you have an jms.jar ...
JDK 11 jdk.internal.le.jmod is the JMOD file for JDK 11 Internal Line Editing module. JDK 11 Interna...
JDK 11 java.sql.jmod is the JMOD file for JDK 11 SQL (Structured Query Language) module. JDK 11 SQL ...
JDK 17 jdk.jfr.jmod is the JMOD file for JDK 17 JFR module. JDK 17 JFR module compiled class files a...