|
23 | 23 | package jdk.vm.ci.hotspot; |
24 | 24 |
|
25 | 25 | import static jdk.vm.ci.common.InitTimer.timer; |
26 | | -import static jdk.vm.ci.hotspot.HotSpotJVMCICompilerFactory.CompilationLevelAdjustment.None; |
27 | 26 | import static jdk.vm.ci.services.Services.IS_BUILDING_NATIVE_IMAGE; |
28 | 27 | import static jdk.vm.ci.services.Services.IS_IN_NATIVE_IMAGE; |
29 | 28 |
|
@@ -468,7 +467,6 @@ public static JavaKind getHostWordKind() { |
468 | 467 | private final JVMCIBackend hostBackend; |
469 | 468 |
|
470 | 469 | private final JVMCICompilerFactory compilerFactory; |
471 | | - private final HotSpotJVMCICompilerFactory hsCompilerFactory; |
472 | 470 | private volatile JVMCICompiler compiler; |
473 | 471 | protected final HotSpotJVMCIReflection reflection; |
474 | 472 |
|
@@ -572,18 +570,6 @@ private HotSpotJVMCIRuntime() { |
572 | 570 | } |
573 | 571 |
|
574 | 572 | compilerFactory = HotSpotJVMCICompilerConfig.getCompilerFactory(this); |
575 | | - if (compilerFactory instanceof HotSpotJVMCICompilerFactory) { |
576 | | - hsCompilerFactory = (HotSpotJVMCICompilerFactory) compilerFactory; |
577 | | - if (hsCompilerFactory.getCompilationLevelAdjustment() != None) { |
578 | | - String name = HotSpotJVMCICompilerFactory.class.getName(); |
579 | | - String msg = String.format("%s.getCompilationLevelAdjustment() is no longer supported. " + |
580 | | - "Use %s.excludeFromJVMCICompilation() instead.", name, name); |
581 | | - throw new UnsupportedOperationException(msg); |
582 | | - } |
583 | | - } else { |
584 | | - hsCompilerFactory = null; |
585 | | - } |
586 | | - |
587 | 573 | if (config.getFlag("JVMCIPrintProperties", Boolean.class)) { |
588 | 574 | if (vmLogStream == null) { |
589 | 575 | vmLogStream = new PrintStream(getLogStream()); |
|
0 commit comments