[platform] a couple more parallel-capable class loaders

This commit is contained in:
Roman Shevchenko
2016-04-13 13:35:18 +02:00
parent fbc84965a5
commit 4f698af7fd
2 changed files with 9 additions and 5 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,9 +25,11 @@ import java.util.Set;
/**
* @author Eugene Zhuravlev
* Date: Oct 21, 2008
* @since Oct 21, 2008
*/
public class AntResourcesClassLoader extends UrlClassLoader {
static { registerAsParallelCapable(); }
private final Set<String> myMisses = new THashSet<String>();
public AntResourcesClassLoader(final List<URL> urls, final ClassLoader parentLoader, final boolean canLockJars, final boolean canUseCache) {
@@ -56,4 +58,4 @@ public class AntResourcesClassLoader extends UrlClassLoader {
throw e;
}
}
}
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -155,6 +155,8 @@ public final class LoaderFactory {
}
private static class DesignTimeClassLoader extends UrlClassLoader {
static { registerAsParallelCapable(); }
private final String myModuleName;
public DesignTimeClassLoader(final List<URL> urls, final ClassLoader parent, final String moduleName) {
@@ -167,4 +169,4 @@ public final class LoaderFactory {
return "DesignTimeClassLoader:" + myModuleName;
}
}
}
}