Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
a5025816
Unverified
Commit
a5025816
authored
Jul 30, 2018
by
Felix Bergmann
Committed by
GitHub
Jul 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making the Classloader threadsafe
parent
2433a7e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ClassFileManager.java
...c/test/java/jadx/tests/api/compiler/ClassFileManager.java
+4
-2
No files found.
jadx-core/src/test/java/jadx/tests/api/compiler/ClassFileManager.java
View file @
a5025816
...
@@ -8,6 +8,8 @@ import java.io.IOException;
...
@@ -8,6 +8,8 @@ import java.io.IOException;
import
java.security.SecureClassLoader
;
import
java.security.SecureClassLoader
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.ConcurrentMap
;
import
static
javax
.
tools
.
JavaFileObject
.
Kind
;
import
static
javax
.
tools
.
JavaFileObject
.
Kind
;
...
@@ -34,8 +36,8 @@ public class ClassFileManager extends ForwardingJavaFileManager<StandardJavaFile
...
@@ -34,8 +36,8 @@ public class ClassFileManager extends ForwardingJavaFileManager<StandardJavaFile
}
}
private
class
DynamicClassLoader
extends
SecureClassLoader
{
private
class
DynamicClassLoader
extends
SecureClassLoader
{
private
final
Map
<
String
,
JavaClassObject
>
clsMap
=
new
HashMap
<>();
private
final
Map
<
String
,
JavaClassObject
>
clsMap
=
new
Concurrent
HashMap
<>();
private
final
Map
<
String
,
Class
<?>>
clsCache
=
new
HashMap
<>();
private
final
Map
<
String
,
Class
<?>>
clsCache
=
new
Concurrent
HashMap
<>();
@Override
@Override
protected
Class
<?>
findClass
(
String
name
)
throws
ClassNotFoundException
{
protected
Class
<?>
findClass
(
String
name
)
throws
ClassNotFoundException
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment