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/types/basic/BasicField.java
/* * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * */ package sun.jvm.hotspot.types.basic; import sun.jvm.hotspot.debugger.*; import sun.jvm.hotspot.types.*; /** A basic implementation of Field which should be suitable for cross-platform use. */ public class BasicField implements Field { protected BasicTypeDataBase db; protected Type type; private Type containingType; private String name; private long size; private boolean isStatic; /** Used for nonstatic fields only */ private long offset; /** Used for static fields only */ private Address staticFieldAddress; // Copy constructor to create NarrowOopField from OopField. public BasicField(Field fld) { BasicField field = (BasicField)fld; this.db = field.db; this.containingType = field.containingType; this.name = field.name; this.type = field.type; this.size = field.size; this.isStatic = field.isStatic; this.offset = field.offset; this.staticFieldAddress = field.staticFieldAddress; } /** offsetInBytes is ignored if the field is static; staticFieldAddress is used only if the field is static. */ public BasicField(BasicTypeDataBase db, Type containingType, String name, Type type, boolean isStatic, long offsetInBytes, Address staticFieldAddress) { this.db = db; this.containingType = containingType; this.name = name; this.type = type; this.size = type.getSize(); this.isStatic = isStatic; this.offset = offsetInBytes; this.staticFieldAddress = staticFieldAddress; } public String getName() { return name; } public Type getType() { return type; } public long getSize() { return size; } public boolean isStatic() { return isStatic; } public long getOffset() throws WrongTypeException { if (isStatic) { throw new WrongTypeException("field \"" + name + "\" in class " + containingType.getName() + " is static"); } return offset; } public Address getStaticFieldAddress() throws WrongTypeException { if (!isStatic) { throw new WrongTypeException("field \"" + name + "\" in class " + containingType.getName() + " is not static"); } return staticFieldAddress; } //-------------------------------------------------------------------------------- // Dereferencing operations for non-static fields // public boolean getJBoolean (Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (isStatic) { throw new WrongTypeException(); } return addr.getJBooleanAt(offset); } public byte getJByte (Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (isStatic) { throw new WrongTypeException(); } return addr.getJByteAt(offset); } public char getJChar (Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (isStatic) { throw new WrongTypeException(); } return addr.getJCharAt(offset); } public double getJDouble (Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (isStatic) { throw new WrongTypeException(); } return addr.getJDoubleAt(offset); } public float getJFloat (Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (isStatic) { throw new WrongTypeException(); } return addr.getJFloatAt(offset); } public int getJInt (Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (isStatic) { throw new WrongTypeException(); } return addr.getJIntAt(offset); } public long getJLong (Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (isStatic) { throw new WrongTypeException(); } return addr.getJLongAt(offset); } public short getJShort (Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (isStatic) { throw new WrongTypeException(); } return addr.getJShortAt(offset); } public long getCInteger (Address addr, CIntegerType type) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (isStatic) { throw new WrongTypeException(); } return addr.getCIntegerAt(offset, type.getSize(), type.isUnsigned()); } public Address getAddress (Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (isStatic) { throw new WrongTypeException(); } return addr.getAddressAt(offset); } public OopHandle getOopHandle(Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException, NotInHeapException { if (isStatic) { throw new WrongTypeException(); } return addr.getOopHandleAt(offset); } public OopHandle getNarrowOopHandle(Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException, NotInHeapException { if (isStatic) { throw new WrongTypeException(); } return addr.getCompOopHandleAt(offset); } //-------------------------------------------------------------------------------- // Dereferencing operations for static fields // public boolean getJBoolean () throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getJBooleanAt(0); } public byte getJByte () throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getJByteAt(0); } public char getJChar () throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getJCharAt(0); } public double getJDouble () throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getJDoubleAt(0); } public float getJFloat () throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getJFloatAt(0); } public int getJInt () throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getJIntAt(0); } public long getJLong () throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getJLongAt(0); } public short getJShort () throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getJShortAt(0); } public long getCInteger (CIntegerType type) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getCIntegerAt(0, type.getSize(), type.isUnsigned()); } public Address getAddress () throws UnmappedAddressException, UnalignedAddressException, WrongTypeException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getAddressAt(0); } public OopHandle getOopHandle() throws UnmappedAddressException, UnalignedAddressException, WrongTypeException, NotInHeapException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getOopHandleAt(0); } public OopHandle getNarrowOopHandle() throws UnmappedAddressException, UnalignedAddressException, WrongTypeException, NotInHeapException { if (!isStatic) { throw new WrongTypeException(); } return staticFieldAddress.getCompOopHandleAt(0); } }
⏎ sun/jvm/hotspot/types/basic/BasicField.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, 131477👍, 0💬
Popular Posts:
JDK 11 jdk.rmic.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) Compiler Tool tool, ...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" co...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module. JDK 11 Desktop module compiled ...