Skip to content

Commit

Permalink
keep optimized mode as default on Java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
d-kozak committed May 17, 2021
1 parent c62eeac commit 0772dc2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
import org.graalvm.compiler.nodes.graphbuilderconf.NodePlugin;
import org.graalvm.compiler.options.Option;
import org.graalvm.compiler.options.OptionType;
import org.graalvm.compiler.serviceprovider.JavaVersionUtil;
import org.graalvm.nativeimage.ImageSingletons;
import org.graalvm.nativeimage.Platform;
import org.graalvm.nativeimage.Platforms;
Expand Down Expand Up @@ -156,7 +157,7 @@ public static class Options {
public static final HostedOptionKey<Boolean> IncludeAllLocales = new HostedOptionKey<>(false);

@Option(help = "Optimize the resource bundle lookup using a simple map.", type = OptionType.User)//
public static final HostedOptionKey<Boolean> LocalizationOptimizedMode = new HostedOptionKey<>(false);
public static final HostedOptionKey<Boolean> LocalizationOptimizedMode = new HostedOptionKey<>(JavaVersionUtil.JAVA_SPEC == 8);

@Option(help = "Store the resource bundle content more efficiently in the fallback mode.", type = OptionType.User)//
public static final HostedOptionKey<Boolean> LocalizationSubstituteLoadLookup = new HostedOptionKey<>(true);
Expand Down

0 comments on commit 0772dc2

Please sign in to comment.