Mercurial > hg > graal-compiler
changeset 18630:7cd79d18f71a
[SPARC] fix concurrency issues in register configuration caching (Use concurrenthashmap)
author | Stefan Anzinger <stefan.a.anzinger@oracle.com> |
---|---|
date | Thu, 04 Dec 2014 23:30:52 +0100 |
parents | caad1a70312d |
children | 12bad81babff |
files | graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotRegisterConfig.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotRegisterConfig.java Wed Dec 03 10:59:04 2014 +0100 +++ b/graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotRegisterConfig.java Thu Dec 04 23:30:52 2014 +0100 @@ -26,6 +26,7 @@ import static com.oracle.graal.sparc.SPARC.*; import java.util.*; +import java.util.concurrent.*; import com.oracle.graal.api.code.*; import com.oracle.graal.api.code.CallingConvention.Type; @@ -42,7 +43,7 @@ private final Register[] allocatable; - private final HashMap<PlatformKind, Register[]> categorized = new HashMap<>(); + private final Map<PlatformKind, Register[]> categorized = new ConcurrentHashMap<>(20); private final RegisterAttributes[] attributesMap;