8166517: [JVMCI] export JVMCI to auto-detected JVMCI compiler
authordnsimon
Tue, 27 Sep 2016 04:48:51 -0700
changeset 41695 1faafa135782
parent 41694 225750a49720
child 41696 578189b0f230
8166517: [JVMCI] export JVMCI to auto-detected JVMCI compiler Reviewed-by: kvn, twisti
hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCICompilerConfig.java
--- a/hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCICompilerConfig.java	Tue Sep 27 09:25:26 2016 +0100
+++ b/hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCICompilerConfig.java	Tue Sep 27 04:48:51 2016 -0700
@@ -82,6 +82,7 @@
                 // Auto select a single available compiler
                 for (JVMCICompilerFactory f : Services.load(JVMCICompilerFactory.class)) {
                     if (factory == null) {
+                        Services.exportJVMCITo(f.getClass());
                         factory = f;
                     } else {
                         // Multiple factories seen - cancel auto selection