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/tools/soql/SOQL.java
/* * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * */ package sun.jvm.hotspot.tools.soql; import java.io.*; import java.util.*; import sun.jvm.hotspot.debugger.*; import sun.jvm.hotspot.oops.*; import sun.jvm.hotspot.runtime.*; import sun.jvm.hotspot.tools.*; import sun.jvm.hotspot.utilities.*; import sun.jvm.hotspot.utilities.soql.*; /** This is command line SOQL (Simple Object Query Language) interpreter. */ public class SOQL extends Tool { public static void main(String[] args) { SOQL soql = new SOQL(); soql.execute(args); } public SOQL() { super(); } public SOQL(JVMDebugger d) { super(d); } protected SOQLEngine soqlEngine; protected BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); protected PrintStream out = System.out; static protected String prompt = "soql> "; static protected String secondPrompt = "> "; public void run() { soqlEngine = SOQLEngine.getEngine(); while (true) { try { out.print(prompt); String line = in.readLine(); if (line == null) { return; } StringTokenizer st = new StringTokenizer(line); if (st.hasMoreTokens()) { String cmd = st.nextToken(); if (cmd.equals("select")) { handleSelect(line); } else if (cmd.equals("classes")) { handleClasses(line); } else if (cmd.equals("class")) { handleClass(line); } else if (cmd.equals("object")) { handleObject(line); } else if (cmd.equals("quit")) { out.println("Bye!"); return; } else if (cmd.equals("")) { // do nothing ... } else { handleUnknown(line); } } } catch (IOException e) { e.printStackTrace(); return; } } } protected void handleSelect(String query) { StringBuffer buf = new StringBuffer(query); String tmp = null; while (true) { out.print(secondPrompt); try { tmp = in.readLine(); } catch (IOException ioe) { break; } if (tmp.equals("") || tmp.equals("go")) break; buf.append('\n'); buf.append(tmp); } query = buf.toString(); try { soqlEngine.executeQuery(query, new ObjectVisitor() { public void visit(Object o) { if (o != null && o instanceof JSJavaObject) { String oopAddr = ((JSJavaObject)o).getOop().getHandle().toString(); out.println(oopAddr); } else { out.println((o == null)? "null" : o.toString()); } } }); } catch (SOQLException se) { se.printStackTrace(); } } protected void handleClasses(String line) { // just list all InstanceKlasses InstanceKlass[] klasses = SystemDictionaryHelper.getAllInstanceKlasses(); for (int i = 0; i < klasses.length; i++) { out.print(klasses[i].getName().asString().replace('/', '.')); out.print(" @"); out.println(klasses[i].getAddress()); } } protected void handleClass(String line) { StringTokenizer st = new StringTokenizer(line); st.nextToken(); // ignore "class" if (st.hasMoreTokens()) { String className = st.nextToken(); InstanceKlass klass = SystemDictionaryHelper.findInstanceKlass(className); if (klass == null) { out.println("class " + className + " not found"); } else { // klass.iterate(new OopPrinter(out), true); // base class InstanceKlass base = (InstanceKlass) klass.getSuper(); if (base != null) { out.println("super"); out.print("\t"); out.println(base.getName().asString().replace('/', '.')); } // list immediate fields only U2Array fields = klass.getFields(); int numFields = (int) fields.length(); ConstantPool cp = klass.getConstants(); out.println("fields"); if (numFields != 0) { for (int f = 0; f < numFields; f++){ Symbol f_name = klass.getFieldName(f); Symbol f_sig = klass.getFieldSignature(f); StringBuffer sigBuf = new StringBuffer(); new SignatureConverter(f_sig, sigBuf).dispatchField(); out.print('\t'); out.print(sigBuf.toString().replace('/', '.')); out.print(' '); out.println(f_name.asString()); } } else { out.println("\tno fields in this class"); } } } else { out.println("usage: class <name of the class>"); } } protected Oop getOopAtAddress(Address addr) { OopHandle oopHandle = addr.addOffsetToAsOopHandle(0); return VM.getVM().getObjectHeap().newOop(oopHandle); } protected void handleObject(String line) { StringTokenizer st = new StringTokenizer(line); st.nextToken(); // ignore "object" if (st.hasMoreTokens()) { String addrStr = st.nextToken(); Address addr = null; Debugger dbg = VM.getVM().getDebugger(); try { addr = dbg.parseAddress(addrStr); } catch (Exception e) { out.println("invalid address : " + e.getMessage()); return; } Oop oop = null; try { oop = getOopAtAddress(addr); } catch (Exception e) { out.println("invalid object : " + e.getMessage()); } if (oop != null) { oop.iterate(new OopPrinter(out), true); } else { out.println("null object!"); } } else { out.println("usage: object <address>"); } } protected void handleUnknown(String line) { out.println("Unknown command!"); } }
⏎ sun/jvm/hotspot/tools/soql/SOQL.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, 131523👍, 0💬
Popular Posts:
What Is HttpComponents httpclient-4.2.2.jar? HttpComponents httpclient-4.2.2.jar is the JAR file for...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
Old version of xml-apis.jar. JAR File Size and Download Location: File name: xmlParserAPIs.jar File ...
If you are a Java developer, it is very often that you need to use some 3rd party libraries to perfo...
JDK 11 jrt-fs.jar is the JAR file for JDK 11 JRT-FS (Java RunTime - File System) defined in the "jdk...