|
80 | 80 | import com.oracle.svm.core.VM; |
81 | 81 | import com.oracle.svm.core.option.BundleMember; |
82 | 82 | import com.oracle.svm.core.option.OptionUtils; |
83 | | -import com.oracle.svm.core.option.SubstrateOptionsParser; |
84 | 83 | import com.oracle.svm.core.util.ClasspathUtils; |
85 | 84 | import com.oracle.svm.core.util.ExitStatus; |
86 | 85 | import com.oracle.svm.core.util.VMError; |
@@ -275,7 +274,6 @@ private static <T> String oR(OptionKey<T> option) { |
275 | 274 | private String printFlagsWithExtraHelpOptionQuery = null; |
276 | 275 |
|
277 | 276 | final Registry optionRegistry; |
278 | | - private LinkedHashSet<EnabledOption> enabledLanguages; |
279 | 277 |
|
280 | 278 | private final List<ExcludeConfig> excludedConfigs = new ArrayList<>(); |
281 | 279 | private final LinkedHashSet<String> addModules = new LinkedHashSet<>(); |
@@ -828,18 +826,6 @@ private void completeOptionArgs() { |
828 | 826 | if (!enabledOptions.isEmpty()) { |
829 | 827 | addPlainImageBuilderArg(oHFallbackThreshold + SubstrateOptions.NoFallback); |
830 | 828 | } |
831 | | - |
832 | | - /* Determine if truffle is needed- any MacroOption of kind Language counts */ |
833 | | - enabledLanguages = optionRegistry.getEnabledOptions(OptionUtils.MacroOptionKind.Language); |
834 | | - |
835 | | - /* Provide more memory for image building if we have more than one language. */ |
836 | | - if (enabledLanguages.size() > 1) { |
837 | | - long baseMemRequirements = SubstrateOptionsParser.parseLong("4g"); |
838 | | - long memRequirements = baseMemRequirements + enabledLanguages.size() * SubstrateOptionsParser.parseLong("1g"); |
839 | | - /* Add mem-requirement for polyglot building - gets further consolidated (use max) */ |
840 | | - addImageBuilderJavaArgs(oXmx + memRequirements); |
841 | | - } |
842 | | - |
843 | 829 | consolidateListArgs(imageBuilderJavaArgs, "-Dpolyglot.engine.PreinitializeContexts=", ",", Function.identity()); // legacy |
844 | 830 | consolidateListArgs(imageBuilderJavaArgs, "-Dpolyglot.image-build-time.PreinitializeContexts=", ",", Function.identity()); |
845 | 831 | } |
|
0 commit comments