Removed unused packageManifests cache, saves a little memory.
This commit is contained in:
parent
4ebbcfd0ae
commit
a4801b70f8
1 changed files with 0 additions and 6 deletions
|
@ -17,7 +17,6 @@ import java.util.jar.Manifest;
|
|||
|
||||
import org.apache.logging.log4j.Level;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.core.Logger;
|
||||
|
||||
public class LaunchClassLoader extends URLClassLoader {
|
||||
public static final int BUFFER_SIZE = 1 << 12;
|
||||
|
@ -30,14 +29,11 @@ public class LaunchClassLoader extends URLClassLoader {
|
|||
|
||||
private Set<String> classLoaderExceptions = new HashSet<String>();
|
||||
private Set<String> transformerExceptions = new HashSet<String>();
|
||||
private Map<Package, Manifest> packageManifests = new ConcurrentHashMap<Package, Manifest>();
|
||||
private Map<String,byte[]> resourceCache = new ConcurrentHashMap<String,byte[]>(1000);
|
||||
private Set<String> negativeResourceCache = Collections.newSetFromMap(new ConcurrentHashMap<String, Boolean>());
|
||||
|
||||
private IClassNameTransformer renameTransformer;
|
||||
|
||||
private static final Manifest EMPTY = new Manifest();
|
||||
|
||||
private final ThreadLocal<byte[]> loadBuffer = new ThreadLocal<byte[]>();
|
||||
|
||||
private static final String[] RESERVED_NAMES = {"CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9"};
|
||||
|
@ -153,7 +149,6 @@ public class LaunchClassLoader extends URLClassLoader {
|
|||
signers = entry.getCodeSigners();
|
||||
if (pkg == null) {
|
||||
pkg = definePackage(packageName, manifest, jarURLConnection.getJarFileURL());
|
||||
packageManifests.put(pkg, manifest);
|
||||
} else {
|
||||
if (pkg.isSealed() && !pkg.isSealed(jarURLConnection.getJarFileURL())) {
|
||||
LogWrapper.severe("The jar file %s is trying to seal already secured path %s", jarFile.getName(), packageName);
|
||||
|
@ -166,7 +161,6 @@ public class LaunchClassLoader extends URLClassLoader {
|
|||
Package pkg = getPackage(packageName);
|
||||
if (pkg == null) {
|
||||
pkg = definePackage(packageName, null, null, null, null, null, null, null);
|
||||
packageManifests.put(pkg, EMPTY);
|
||||
} else if (pkg.isSealed()) {
|
||||
LogWrapper.severe("The URL %s is defining elements for sealed path %s", urlConnection.getURL(), packageName);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue