Skip to content

Commit b565a10

Browse files
committed
do not register TruffleCompilerOptions as libgraal command line options (JDK-8353222)
1 parent f8fbbb6 commit b565a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/jdk.graal.compiler.libgraal/src/jdk/graal/compiler/libgraal/LibGraalFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void afterAnalysis(AfterAnalysisAccess access) {
232232
Map<String, String> modules = libgraalLoader.getClassModuleMap();
233233
for (OptionKey<?> option : options) {
234234
OptionDescriptor descriptor = option.getDescriptor();
235-
if (descriptor != null) {
235+
if (descriptor != null && descriptor.getContainer().optionsAreServiceLoadable()) {
236236
GraalError.guarantee(access.isReachable(option.getClass()), "%s", option.getClass());
237237
GraalError.guarantee(access.isReachable(descriptor.getClass()), "%s", descriptor.getClass());
238238

0 commit comments

Comments
 (0)