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 17 jdk.hotspot.agent.jmod - Hotspot Agent Module
JDK 17 jdk.hotspot.agent.jmod is the JMOD file for JDK 17 Hotspot Agent module.
JDK 17 Hotspot Agent module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.hotspot.agent.jmod.
JDK 17 Hotspot Agent module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Hotspot Agent module source code files are stored in \fyicenter\jdk-17.0.5\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/SALauncherLoader.java
/*
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.jvm.hotspot;
import java.io.*;
import java.net.*;
import java.util.*;
import java.security.*;
/**
* SA uses native debugger back-end library - libsaproc.so on Unix platforms.
* Starting from 5.0, in Solaris & Linux JDK "libsaproc.so" is shipped with JDK
* and is kept jre/lib/cpu directory (where all other JDK platform libraries
* are kept). This implies that always that jre copy of libsaproc.so will be
* used and the copy of libsaproc.so built from SA sources here will not
* be used at all. We can override libsaproc.so using this class loader
* as System class loader using "java.system.class.loader" property. This
* class loader loads classes paths specified paths using the System property
* "java.class.path". Because, this class loader loads SA debugger classes
* (among other classes), JVM calls findLibrary override here. In this
* findLibrary, we first check the library in the directories specified through
* "sa.library.path" System property. This way updated/latest SA native library
* can be loaded instead of the one from JDK's jre/lib directory.
*/
public class SALauncherLoader extends URLClassLoader {
/**
* Checks native libraries under directories specified using
* the System property "sa.library.path".
*/
public String findLibrary(String name) {
name = System.mapLibraryName(name);
for (int i = 0; i < libpaths.length; i++) {
File file = new File(new File(libpaths[i]), name);
if (file.exists()) {
return file.getAbsolutePath();
}
}
return null;
}
public SALauncherLoader(ClassLoader parent) {
super(getClassPath(), parent);
String salibpath = System.getProperty("sa.library.path");
if (salibpath != null) {
libpaths = salibpath.split(File.pathSeparator);
} else {
libpaths = new String[0];
}
}
/**
* Override loadClass so we can checkPackageAccess.
*/
public synchronized Class loadClass(String name, boolean resolve)
throws ClassNotFoundException {
int i = name.lastIndexOf('.');
if (i != -1) {
@SuppressWarnings("removal")
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
sm.checkPackageAccess(name.substring(0, i));
}
}
Class clazz = findLoadedClass(name);
if (clazz != null) return clazz;
/*
* NOTE: Unlike 'usual' class loaders, we do *not* delegate to
* the parent loader first. We attempt to load the class
* ourselves first and use parent loader only if we can't load.
* This is because the parent of this loader is 'default'
* System loader that can 'see' all SA classes in classpath and
* so will load those if delegated. And if parent loads SA classes,
* then JVM won't call findNative override in this class.
*/
try {
return findClass(name);
} catch (ClassNotFoundException cnfe) {
return (super.loadClass(name, resolve));
}
}
/**
* allow any classes loaded from classpath to exit the VM.
*/
protected PermissionCollection getPermissions(CodeSource codesource) {
PermissionCollection perms = super.getPermissions(codesource);
perms.add(new RuntimePermission("exitVM"));
return perms;
}
//-- Internals only below this point
private String[] libpaths;
private static URL[] getClassPath() {
final String s = System.getProperty("java.class.path");
final File[] path = (s == null) ? new File[0] : getClassPath(s);
return pathToURLs(path);
}
private static URL[] pathToURLs(File[] path) {
URL[] urls = new URL[path.length];
for (int i = 0; i < path.length; i++) {
urls[i] = getFileURL(path[i]);
}
return urls;
}
private static File[] getClassPath(String cp) {
String[] tmp = cp.split(File.pathSeparator);
File[] paths = new File[tmp.length];
for (int i = 0; i < paths.length; i++) {
paths[i] = new File(tmp[i].equals("")? "." : tmp[i]);
}
return paths;
}
private static URL getFileURL(File file) {
try {
file = file.getCanonicalFile();
} catch (IOException e) {
e.printStackTrace();
}
try {
return file.toURI().toURL();
} catch (MalformedURLException mue) {
throw new InternalError(mue.getMessage());
}
}
}
⏎ sun/jvm/hotspot/SALauncherLoader.java
Or download all of them as a single archive file:
File name: jdk.hotspot.agent-17.0.5-src.zip File size: 1238587 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.httpserver.jmod - HTTP Server Module
2023-10-04, ≈97🔥, 0💬
Popular Posts:
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...
What Is poi-ooxml-5.2.3.jar? poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which...
JUnit Source Code Files are provided in the source package file, junit-4.13.2-sources.jar .You can b...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
XOM™ is a new XML object model. It is an open source (LGPL), tree-based API for processing XML with ...