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/oops/Symbol.java
/* * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * */ package sun.jvm.hotspot.oops; import java.io.*; import java.util.*; import sun.jvm.hotspot.debugger.*; import sun.jvm.hotspot.runtime.*; import sun.jvm.hotspot.types.*; import sun.jvm.hotspot.utilities.*; // A Symbol is a canonicalized string. // All Symbols reside in global symbolTable. public class Symbol extends VMObject { static { VM.registerVMInitializedObserver(new Observer() { public void update(Observable o, Object data) { initialize(VM.getVM().getTypeDataBase()); } }); } private static synchronized void initialize(TypeDataBase db) throws WrongTypeException { Type type = db.lookupType("Symbol"); length = type.getCIntegerField("_length"); baseOffset = type.getField("_body").getOffset(); idHash = type.getCIntegerField("_identity_hash"); } // Format: // [header] // [klass ] // [length] byte size of uft8 string // ..body.. public static Symbol create(Address addr) { if (addr == null) { return null; } return new Symbol(addr); } Symbol(Address addr) { super(addr); } public boolean isSymbol() { return true; } private static long baseOffset; // tells where the array part starts // Fields private static CIntegerField length; // Accessors for declared fields public long getLength() { return length.getValue(this.addr); } public byte getByteAt(long index) { return addr.getJByteAt(baseOffset + index); } // _identity_hash is a short private static CIntegerField idHash; public int identityHash() { long addr_value = getAddress().asLongValue(); int addr_bits = (int)(addr_value >> (VM.getVM().getLogMinObjAlignmentInBytes() + 3)); int length = (int)getLength(); int byte0 = getByteAt(0); int byte1 = getByteAt(1); int id_hash = (int)(0xffff & idHash.getValue(this.addr)); return id_hash | ((addr_bits ^ (length << 8) ^ ((byte0 << 8) | byte1)) << 16); } public boolean equals(byte[] modUTF8Chars) { int l = (int) getLength(); if (l != modUTF8Chars.length) return false; while (l-- > 0) { if (modUTF8Chars[l] != getByteAt(l)) return false; } if (Assert.ASSERTS_ENABLED) { Assert.that(l == -1, "we should be at the beginning"); } return true; } public byte[] asByteArray() { int length = (int) getLength(); byte [] result = new byte [length]; for (int index = 0; index < length; index++) { result[index] = getByteAt(index); } return result; } public String asString() { // Decode the byte array and return the string. try { return readModifiedUTF8(asByteArray()); } catch(Exception e) { System.err.println(addr); e.printStackTrace(); return null; } } public boolean startsWith(String str) { return asString().startsWith(str); } public void printValueOn(PrintStream tty) { tty.print("#" + asString()); } /** Note: this comparison is used for vtable sorting only; it doesn't matter what order it defines, as long as it is a total, time-invariant order Since Symbol* are in C_HEAP, their relative order in memory never changes, so use address comparison for speed. */ public long fastCompare(Symbol other) { return addr.minus(other.addr); } private static String readModifiedUTF8(byte[] buf) throws IOException { final int len = buf.length; byte[] tmp = new byte[len + 2]; // write modified UTF-8 length as short in big endian tmp[0] = (byte) ((len >>> 8) & 0xFF); tmp[1] = (byte) ((len >>> 0) & 0xFF); // copy the data System.arraycopy(buf, 0, tmp, 2, len); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(tmp)); return dis.readUTF(); } }
⏎ sun/jvm/hotspot/oops/Symbol.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, ≈183🔥, 0💬
Popular Posts:
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module. JDK 17 Desktop module compiled ...
What Is js.jar in Rhino JavaScript 1.7R5? js.jar in Rhino JavaScript 1.7R5 is the JAR file for Rhino...