Skip to content

Commit

Permalink
[GR-19910] Make DynamicProxySupport.proxyCache thread safe.
Browse files Browse the repository at this point in the history
PullRequest: graal/5017
  • Loading branch information
cstancu committed Dec 5, 2019
2 parents 7c8d6b1 + 91748b9 commit a5aa34b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

import java.lang.reflect.InvocationHandler;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.graalvm.nativeimage.Platform;
import org.graalvm.nativeimage.Platforms;
Expand Down Expand Up @@ -79,7 +79,7 @@ public String toString() {

public DynamicProxySupport(ClassLoader classLoader) {
this.classLoader = classLoader;
this.proxyCache = new HashMap<>();
this.proxyCache = new ConcurrentHashMap<>();
}

@Platforms(Platform.HOSTED_ONLY.class)
Expand Down

0 comments on commit a5aa34b

Please sign in to comment.