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 17 java.base.jmod - Base Module
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module.
JDK 17 Base module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.base.jmod.
JDK 17 Base module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Base module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/lang/invoke/LambdaProxyClassArchive.java
/* * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * * */ package java.lang.invoke; import jdk.internal.loader.BuiltinClassLoader; import jdk.internal.misc.CDS; final class LambdaProxyClassArchive { /** * Check if the class is loaded by a built-in class loader. */ static boolean loadedByBuiltinLoader(Class<?> cls) { ClassLoader cl = cls.getClassLoader(); return (cl == null || (cl instanceof BuiltinClassLoader)) ? true : false; } private static native void addToArchive(Class<?> caller, String interfaceMethodName, MethodType factoryType, MethodType interfaceMethodType, MemberName implementationMember, MethodType dynamicMethodType, Class<?> lambdaProxyClass); private static native Class<?> findFromArchive(Class<?> caller, String interfaceMethodName, MethodType factoryType, MethodType interfaceMethodType, MemberName implementationMember, MethodType dynamicMethodType); /** * Registers the lambdaProxyClass into CDS archive. * The VM will store the lambdaProxyClass into a hash table * using the first six argumennts as the key. * * CDS only archives lambda proxy class if it's not serializable * and no marker interfaces and no additional bridges, and if it is * loaded by a built-in class loader. */ static boolean register(Class<?> caller, String interfaceMethodName, MethodType factoryType, MethodType interfaceMethodType, MethodHandle implementation, MethodType dynamicMethodType, boolean isSerializable, Class<?>[] altInterfaces, MethodType[] altMethods, Class<?> lambdaProxyClass) { if (!CDS.isDumpingArchive()) throw new IllegalStateException("should only register lambda proxy class at dump time"); if (loadedByBuiltinLoader(caller) && !isSerializable && altInterfaces.length == 0 && altMethods.length == 0) { addToArchive(caller, interfaceMethodName, factoryType, interfaceMethodType, implementation.internalMemberName(), dynamicMethodType, lambdaProxyClass); return true; } return false; } /** * Lookup a lambda proxy class from the CDS archive using the first * six arguments as the key. * * CDS only archives lambda proxy class if it's not serializable * and no marker interfaces and no additional bridges, and if it is * loaded by a built-in class loader. */ static Class<?> find(Class<?> caller, String interfaceMethodName, MethodType factoryType, MethodType interfaceMethodType, MethodHandle implementation, MethodType dynamicMethodType, boolean isSerializable, Class<?>[] altInterfaces, MethodType[] altMethods) { if (CDS.isDumpingArchive()) throw new IllegalStateException("cannot load class from CDS archive at dump time"); if (!loadedByBuiltinLoader(caller) || !CDS.isSharingEnabled() || isSerializable || altInterfaces.length > 0 || altMethods.length > 0) return null; return findFromArchive(caller, interfaceMethodName, factoryType, interfaceMethodType, implementation.internalMemberName(), dynamicMethodType); } }
⏎ java/lang/invoke/LambdaProxyClassArchive.java
Or download all of them as a single archive file:
File name: java.base-17.0.5-src.zip File size: 8883851 bytes Release date: 2022-09-13 Download
2023-09-26, 104440👍, 1💬
Popular Posts:
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module. JDK 11 Desktop module compiled ...
How to show the XML parsing flow with sax\DocumentTracer.java provided in the Apache Xerces package?...
maven-settings-builder-3 .8.6.jaris the JAR file for Apache Maven 3.8.6 Settings Builder module. Apa...
JDK 11 jrt-fs.jar is the JAR file for JDK 11 JRT-FS (Java RunTime - File System) defined in the "jdk...