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.jfr.jmod - JFR Module
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module.
JDK 11 JFR module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jfr.jmod.
JDK 11 JFR module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JFR module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jfr.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jfr/internal/instrument/JIInliner.java
/* * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jfr.internal.instrument; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.List; import jdk.internal.org.objectweb.asm.ClassReader; import jdk.internal.org.objectweb.asm.ClassVisitor; import jdk.internal.org.objectweb.asm.MethodVisitor; import jdk.internal.org.objectweb.asm.Opcodes; import jdk.internal.org.objectweb.asm.Type; import jdk.internal.org.objectweb.asm.tree.ClassNode; import jdk.internal.org.objectweb.asm.tree.MethodNode; import jdk.jfr.internal.LogLevel; import jdk.jfr.internal.LogTag; import jdk.jfr.internal.Logger; @Deprecated final class JIInliner extends ClassVisitor { private final String targetClassName; private final String instrumentationClassName; private final ClassNode targetClassNode; private final List<Method> instrumentationMethods; /** * A ClassVisitor which will check all methods of the class it visits against the instrumentationMethods * list. If a method is on that list, the method will be further processed for inlining into that * method. */ JIInliner(int api, ClassVisitor cv, String targetClassName, String instrumentationClassName, ClassReader targetClassReader, List<Method> instrumentationMethods) { super(api, cv); this.targetClassName = targetClassName; this.instrumentationClassName = instrumentationClassName; this.instrumentationMethods = instrumentationMethods; ClassNode cn = new ClassNode(Opcodes.ASM5); targetClassReader.accept(cn, ClassReader.EXPAND_FRAMES); this.targetClassNode = cn; } @Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions); if (isInstrumentationMethod(name, desc)) { MethodNode methodToInline = findTargetMethodNode(name, desc); if (methodToInline == null) { throw new IllegalArgumentException("Could not find the method to instrument in the target class"); } if (Modifier.isNative(methodToInline.access)) { throw new IllegalArgumentException("Cannot instrument native methods: " + targetClassNode.name + "." + methodToInline.name + methodToInline.desc); } Logger.log(LogTag.JFR_SYSTEM_BYTECODE, LogLevel.DEBUG, "Inliner processing method " + name + desc); JIMethodCallInliner mci = new JIMethodCallInliner(access, desc, mv, methodToInline, targetClassName, instrumentationClassName); return mci; } return mv; } private boolean isInstrumentationMethod(String name, String desc) { for(Method m : instrumentationMethods) { if (m.getName().equals(name) && Type.getMethodDescriptor(m).equals(desc)) { return true; } } return false; } private MethodNode findTargetMethodNode(String name, String desc) { for (MethodNode mn : targetClassNode.methods) { if (mn.desc.equals(desc) && mn.name.equals(name)) { return mn; } } throw new IllegalArgumentException("could not find MethodNode for " + name + desc); } }
⏎ jdk/jfr/internal/instrument/JIInliner.java
Or download all of them as a single archive file:
File name: jdk.jfr-11.0.1-src.zip File size: 237632 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jlink.jmod - JLink Tool
2020-06-30, 43668👍, 0💬
Popular Posts:
JDK 11 jdk.internal.le.jmod is the JMOD file for JDK 11 Internal Line Editing module. JDK 11 Interna...
xml-commons Resolver Source Code Files are provided in the source package file, xml-commons-resolver...
Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java...
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
Apache Ant is a Java-based build tool. In theory, it is kind of like make, without make's wrinkles. ...