Skip to content

Commit

Permalink
[GR-54724] Make LocalizationSupport.registerBundleLookup thread safe.
Browse files Browse the repository at this point in the history
PullRequest: graal/18023
  • Loading branch information
christianwimmer committed Jun 14, 2024
2 parents b66e3f2 + 6a74bb7 commit 59ad5b5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import com.oracle.svm.core.SubstrateUtil;
import com.oracle.svm.core.configure.RuntimeConditionSet;
import com.oracle.svm.core.jdk.Resources;
import com.oracle.svm.core.util.ImageHeapMap;
import com.oracle.svm.core.util.VMError;
import com.oracle.svm.util.ReflectionUtil;

Expand Down Expand Up @@ -88,7 +89,7 @@ public class LocalizationSupport {

public final Charset defaultCharset;

private final EconomicMap<String, RuntimeConditionSet> registeredBundles = EconomicMap.create();
private final EconomicMap<String, RuntimeConditionSet> registeredBundles = ImageHeapMap.create();

public LocalizationSupport(Locale defaultLocale, Set<Locale> locales, Charset defaultCharset) {
this.defaultLocale = defaultLocale;
Expand Down

0 comments on commit 59ad5b5

Please sign in to comment.