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/interpreter/BytecodeDisassembler.java
/* * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * */ package sun.jvm.hotspot.interpreter; import java.util.*; import java.lang.reflect.Constructor; import sun.jvm.hotspot.oops.*; import sun.jvm.hotspot.utilities.*; public class BytecodeDisassembler { private Method method; private static Map bytecode2Class = new HashMap(); // Map<int, Class> private static void addBytecodeClass(int bytecode, Class clazz) { bytecode2Class.put(new Integer(bytecode), clazz); } private static Class getBytecodeClass(int bytecode) { return (Class) bytecode2Class.get(new Integer(bytecode)); } static { addBytecodeClass(Bytecodes._anewarray, BytecodeANewArray.class); addBytecodeClass(Bytecodes._bipush, BytecodeBipush.class); addBytecodeClass(Bytecodes._checkcast, BytecodeCheckCast.class); addBytecodeClass(Bytecodes._getfield, BytecodeGetField.class); addBytecodeClass(Bytecodes._getstatic, BytecodeGetStatic.class); addBytecodeClass(Bytecodes._goto, BytecodeGoto.class); addBytecodeClass(Bytecodes._goto_w, BytecodeGotoW.class); addBytecodeClass(Bytecodes._ifeq, BytecodeIf.class); addBytecodeClass(Bytecodes._ifne, BytecodeIf.class); addBytecodeClass(Bytecodes._iflt, BytecodeIf.class); addBytecodeClass(Bytecodes._ifge, BytecodeIf.class); addBytecodeClass(Bytecodes._ifgt, BytecodeIf.class); addBytecodeClass(Bytecodes._ifle, BytecodeIf.class); addBytecodeClass(Bytecodes._if_icmpeq, BytecodeIf.class); addBytecodeClass(Bytecodes._if_icmpne, BytecodeIf.class); addBytecodeClass(Bytecodes._if_icmplt, BytecodeIf.class); addBytecodeClass(Bytecodes._if_icmpge, BytecodeIf.class); addBytecodeClass(Bytecodes._if_icmpgt, BytecodeIf.class); addBytecodeClass(Bytecodes._if_icmple, BytecodeIf.class); addBytecodeClass(Bytecodes._if_acmpeq, BytecodeIf.class); addBytecodeClass(Bytecodes._if_acmpne, BytecodeIf.class); addBytecodeClass(Bytecodes._ifnull, BytecodeIf.class); addBytecodeClass(Bytecodes._ifnonnull, BytecodeIf.class); addBytecodeClass(Bytecodes._iinc, BytecodeIinc.class); addBytecodeClass(Bytecodes._instanceof, BytecodeInstanceOf.class); addBytecodeClass(Bytecodes._invokevirtual, BytecodeInvoke.class); addBytecodeClass(Bytecodes._invokestatic, BytecodeInvoke.class); addBytecodeClass(Bytecodes._invokespecial, BytecodeInvoke.class); addBytecodeClass(Bytecodes._invokeinterface, BytecodeInvoke.class); addBytecodeClass(Bytecodes._invokedynamic, BytecodeInvoke.class); addBytecodeClass(Bytecodes._jsr, BytecodeJsr.class); addBytecodeClass(Bytecodes._jsr_w, BytecodeJsrW.class); addBytecodeClass(Bytecodes._iload, BytecodeLoad.class); addBytecodeClass(Bytecodes._lload, BytecodeLoad.class); addBytecodeClass(Bytecodes._fload, BytecodeLoad.class); addBytecodeClass(Bytecodes._dload, BytecodeLoad.class); addBytecodeClass(Bytecodes._aload, BytecodeLoad.class); addBytecodeClass(Bytecodes._ldc, BytecodeLoadConstant.class); addBytecodeClass(Bytecodes._ldc_w, BytecodeLoadConstant.class); addBytecodeClass(Bytecodes._ldc2_w, BytecodeLoadConstant.class); addBytecodeClass(Bytecodes._lookupswitch, BytecodeLookupswitch.class); addBytecodeClass(Bytecodes._multianewarray, BytecodeMultiANewArray.class); addBytecodeClass(Bytecodes._new, BytecodeNew.class); addBytecodeClass(Bytecodes._newarray, BytecodeNewArray.class); addBytecodeClass(Bytecodes._putfield, BytecodePutField.class); addBytecodeClass(Bytecodes._putstatic, BytecodePutStatic.class); addBytecodeClass(Bytecodes._ret, BytecodeRet.class); addBytecodeClass(Bytecodes._sipush, BytecodeSipush.class); addBytecodeClass(Bytecodes._istore, BytecodeStore.class); addBytecodeClass(Bytecodes._lstore, BytecodeStore.class); addBytecodeClass(Bytecodes._fstore, BytecodeStore.class); addBytecodeClass(Bytecodes._dstore, BytecodeStore.class); addBytecodeClass(Bytecodes._astore, BytecodeStore.class); addBytecodeClass(Bytecodes._tableswitch, BytecodeTableswitch.class); } public BytecodeDisassembler(Method method) { this.method = method; } public Method getMethod() { return method; } public void decode(BytecodeVisitor visitor) { visitor.prologue(method); BytecodeStream stream = new BytecodeStream(method); int javacode = Bytecodes._illegal; while ( (javacode = stream.next()) != Bytecodes._illegal) { // look for special Bytecode class int bci = stream.bci(); int hotspotcode = method.getBytecodeOrBPAt(bci); Class clazz = getBytecodeClass(javacode); if (clazz == null) { // check for fast_(i|a)_access_0 clazz = getBytecodeClass(hotspotcode); if (clazz == null) { // use generic bytecode class clazz = Bytecode.class; } } // All bytecode classes must have a constructor with signature // (Lsun/jvm/hotspot/oops/Method;I)V Constructor cstr = null; try { cstr = clazz.getDeclaredConstructor(new Class[] { Method.class, Integer.TYPE }); } catch(NoSuchMethodException nomethod) { if (Assert.ASSERTS_ENABLED) { Assert.that(false, "Bytecode class without proper constructor!"); } } Bytecode bytecodeObj = null; try { bytecodeObj = (Bytecode)cstr.newInstance(new Object[] { method, new Integer(bci) }); } catch (Exception exp) { if (Assert.ASSERTS_ENABLED) { Assert.that(false, "Bytecode instance of class " + clazz.getName() + " can not be created!"); } } if (stream.isWide()) { visitor.visit(new Bytecode(method, bci - 1)); } try { visitor.visit(bytecodeObj); } catch(ClassCastException castfail) { castfail.printStackTrace(); System.err.println(method.getAddress() + " " + bci); } } visitor.epilogue(); } }
⏎ sun/jvm/hotspot/interpreter/BytecodeDisassembler.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, ≈190🔥, 0💬
Popular Posts:
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...
Apache Log4j 1.2 Bridge allows applications coded to use Log4j 1.2 API to use Log4j 2 instead. Bytec...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
If you are a Java developer, it is very often that you need to use some 3rd party libraries to perfo...