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/utilities/soql/JSJavaFactoryImpl.java
/* * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * */ package sun.jvm.hotspot.utilities.soql; import java.lang.ref.*; import java.util.*; import sun.jvm.hotspot.oops.*; import sun.jvm.hotspot.runtime.*; import sun.jvm.hotspot.utilities.*; public class JSJavaFactoryImpl implements JSJavaFactory { public JSJavaObject newJSJavaObject(Oop oop) { if (oop == null) return null; SoftReference sref = (SoftReference) om.get(oop); JSJavaObject res = (sref != null)? (JSJavaObject) sref.get() : null; if (res == null) { if (oop instanceof TypeArray) { res = new JSJavaTypeArray((TypeArray)oop, this); } else if (oop instanceof ObjArray) { res = new JSJavaObjArray((ObjArray)oop, this); } else if (oop instanceof Instance) { res = newJavaInstance((Instance) oop); } } if (res != null) { om.put(oop, new SoftReference(res)); } return res; } public JSJavaKlass newJSJavaKlass(Klass klass) { JSJavaKlass res = null; if (klass instanceof InstanceKlass) { res = new JSJavaInstanceKlass((InstanceKlass) klass, this); } else if (klass instanceof ObjArrayKlass) { res = new JSJavaObjArrayKlass((ObjArrayKlass) klass, this); } else if (klass instanceof TypeArrayKlass) { res = new JSJavaTypeArrayKlass((TypeArrayKlass) klass, this); } if (res != null) { om.put(klass, new SoftReference(res)); } return res; } public JSJavaMethod newJSJavaMethod(Method method) { JSJavaMethod res = new JSJavaMethod(method, this); if (res != null) { om.put(method, new SoftReference(res)); } return res; } public JSJavaField newJSJavaField(Field field) { if (field == null) return null; return new JSJavaField(field, this); } public JSJavaThread newJSJavaThread(JavaThread jthread) { if (jthread == null) return null; return new JSJavaThread(jthread, this); } public JSJavaFrame newJSJavaFrame(JavaVFrame jvf) { if (jvf == null) return null; return new JSJavaFrame(jvf, this); } public JSList newJSList(List list) { if (list == null) return null; return new JSList(list, this); } public JSMap newJSMap(Map map) { if (map == null) return null; return new JSMap(map, this); } public Object newJSJavaWrapper(Object item) { if (item == null) return null; if (item instanceof Oop) { return newJSJavaObject((Oop) item); } else if (item instanceof Field) { return newJSJavaField((Field) item); } else if (item instanceof JavaThread) { return newJSJavaThread((JavaThread) item); } else if (item instanceof JavaVFrame) { return newJSJavaFrame((JavaVFrame) item); } else if (item instanceof List) { return newJSList((List) item); } else if (item instanceof Map) { return newJSMap((Map) item); } else { // not-a-special-type, just return the input item return item; } } public JSJavaHeap newJSJavaHeap() { return new JSJavaHeap(this); } public JSJavaVM newJSJavaVM() { return new JSJavaVM(this); } // -- Internals only below this point private Symbol javaLangString() { if (javaLangString == null) { javaLangString = getSymbol("java/lang/String"); } return javaLangString; } private Symbol javaLangThread() { if (javaLangThread == null) { javaLangThread = getSymbol("java/lang/Thread"); } return javaLangThread; } private Symbol javaLangClass() { if (javaLangClass == null) { javaLangClass = getSymbol("java/lang/Class"); } return javaLangClass; } private Symbol getSymbol(String str) { return VM.getVM().getSymbolTable().probe(str); } private JSJavaObject newJavaInstance(Instance instance) { // look for well-known classes Symbol className = instance.getKlass().getName(); if (Assert.ASSERTS_ENABLED) { Assert.that(className != null, "Null class name"); } JSJavaObject res = null; if (className.equals(javaLangString())) { res = new JSJavaString(instance, this); } else if (className.equals(javaLangThread())) { res = new JSJavaThread(instance, this); } else if (className.equals(javaLangClass())) { Klass reflectedType = java_lang_Class.asKlass(instance); if (reflectedType != null) { JSJavaKlass jk = newJSJavaKlass(reflectedType); // we don't support mirrors of VM internal Klasses if (jk == null) return null; res = new JSJavaClass(instance, jk, this); } else { // for primitive Classes, the reflected type is null return null; } } else { // not a well-known class. But the base class may be // one of the known classes. Klass kls = instance.getKlass().getSuper(); while (kls != null) { className = kls.getName(); // java.lang.Class and java.lang.String are final classes if (className.equals(javaLangThread())) { res = new JSJavaThread(instance, this); break; } kls = kls.getSuper(); } } if (res == null) { res = new JSJavaInstance(instance, this); } return res; } // Map<Oop, SoftReference<JSJavaObject>> private Map om = new HashMap(); private Symbol javaLangString; private Symbol javaLangThread; private Symbol javaLangClass; }
⏎ sun/jvm/hotspot/utilities/soql/JSJavaFactoryImpl.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, 131895👍, 0💬
Popular Posts:
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
JRE 5 sunjce_provider.jar is the JAR file for JRE 5 Sun JCE Provider, which provides implementations...
What is ojdbc.jar - JDBC Driver for Oracle? ojdbc.jar is a JDBC driver from Oracle that provides dat...