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/code/StubQueue.java
/* * Copyright (c) 2000, 2002, 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.*; /** <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-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, 131877👍, 0💬
Popular Posts:
Apache Log4j 1.2 Bridge allows applications coded to use Log4j 1.2 API to use Log4j 2 instead. Bytec...
JDK 17 jdk.localedata.jmod is the JMOD file for JDK 17 Localedata module. JDK 17 Locale Data module ...
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...
JDK 11 jdk.rmic.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) Compiler Tool tool, ...