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/code/StubQueue.java
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot.code;
import java.util.*;
import sun.jvm.hotspot.debugger.*;
import sun.jvm.hotspot.runtime.*;
import sun.jvm.hotspot.types.*;
import sun.jvm.hotspot.utilities.*;
import sun.jvm.hotspot.utilities.Observable;
import sun.jvm.hotspot.utilities.Observer;
/** <P> A port of the VM's StubQueue. Note that the VM implicitly
knows the type of the objects contained in each StubQueue because
it passes in an instance of a StubInterface to the StubQueue's
constructor; the goal in the VM was to save space in the generated
code. In the SA APIs the pattern has been to use the
VirtualConstructor mechanism to instantiate wrapper objects of the
appropriate type for objects down in the VM; see, for example, the
CodeCache, which identifies NMethods, RuntimeStubs, etc. </P>
<P> In this port we eliminate the StubInterface in favor of
passing in the class corresponding to the type of Stub which this
StubQueue contains. </P> */
public class StubQueue extends VMObject {
// FIXME: add the rest of the fields
private static AddressField stubBufferField;
private static CIntegerField bufferLimitField;
private static CIntegerField queueBeginField;
private static CIntegerField queueEndField;
private static CIntegerField numberOfStubsField;
// The type of the contained stubs (i.e., InterpreterCodelet,
// ICStub). Must be a subclass of type Stub.
private Class<?> stubType;
static {
VM.registerVMInitializedObserver(new Observer() {
public void update(Observable o, Object data) {
initialize(VM.getVM().getTypeDataBase());
}
});
}
private static synchronized void initialize(TypeDataBase db) {
Type type = db.lookupType("StubQueue");
stubBufferField = type.getAddressField("_stub_buffer");
bufferLimitField = type.getCIntegerField("_buffer_limit");
queueBeginField = type.getCIntegerField("_queue_begin");
queueEndField = type.getCIntegerField("_queue_end");
numberOfStubsField = type.getCIntegerField("_number_of_stubs");
}
public StubQueue(Address addr, Class stubType) {
super(addr);
this.stubType = stubType;
}
public boolean contains(Address pc) {
if (pc == null) return false;
long offset = pc.minus(getStubBuffer());
return ((0 <= offset) && (offset < getBufferLimit()));
}
public Stub getStubContaining(Address pc) {
if (contains(pc)) {
int i = 0;
for (Stub s = getFirst(); s != null; s = getNext(s)) {
if (stubContains(s, pc)) {
return s;
}
}
}
return null;
}
public boolean stubContains(Stub s, Address pc) {
return (s.codeBegin().lessThanOrEqual(pc) && s.codeEnd().greaterThan(pc));
}
public int getNumberOfStubs() {
return (int) numberOfStubsField.getValue(addr);
}
public Stub getFirst() {
return ((getNumberOfStubs() > 0) ? getStubAt(getQueueBegin()) : null);
}
public Stub getNext(Stub s) {
long i = getIndexOf(s) + getStubSize(s);
if (i == getBufferLimit()) {
i = 0;
}
return ((i == getQueueEnd()) ? null : getStubAt(i));
}
public Stub getPrev(Stub s) {
if (getIndexOf(s) == getQueueBegin()) {
return null;
}
Stub temp = getFirst();
Stub prev = null;
while (temp != null && getIndexOf(temp) != getIndexOf(s)) {
prev = temp;
temp = getNext(temp);
}
return prev;
}
//--------------------------------------------------------------------------------
// Internals only below this point
//
private long getQueueBegin() {
return queueBeginField.getValue(addr);
}
private long getQueueEnd() {
return queueEndField.getValue(addr);
}
private long getBufferLimit() {
return bufferLimitField.getValue(addr);
}
private Address getStubBuffer() {
return stubBufferField.getValue(addr);
}
private Stub getStubAt(long offset) {
checkIndex(offset);
return (Stub) VMObjectFactory.newObject(stubType, getStubBuffer().addOffsetTo(offset));
}
private long getIndexOf(Stub s) {
long i = s.getAddress().minus(getStubBuffer());
checkIndex(i);
return i;
}
private long getStubSize(Stub s) {
return s.getSize();
}
private void checkIndex(long i) {
if (Assert.ASSERTS_ENABLED) {
Assert.that(0 <= i && i < getBufferLimit() && (i % VM.getVM().getAddressSize() == 0), "illegal index");
}
}
}
⏎ sun/jvm/hotspot/code/StubQueue.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, ≈371🔥, 0💬
Popular Posts:
What Is poi-3.5.jar - Part 2? poi-3.5.jar is one of the JAR files for Apache POI 3.5, which provides...
JEuclid Source Code Files are provided the JEuclid GitHub Website . You can browse JEuclid Source Co...
JDK 17 jdk.charsets.jmod is the JMOD file for JDK 17 Charsets module. JDK 17 Charsets module compile...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...