Mercurial > hg > graal-jvmci-8
changeset 23725:5595ab8ba8bd jvmci-0.17
documented DummyCompilerFactory
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 04 Jul 2016 10:19:42 +0200 |
parents | cad643390ae2 |
children | 4a61c3e64ab4 |
files | jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCICompilerConfig.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCICompilerConfig.java Sun Jul 03 00:13:33 2016 +0200 +++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCICompilerConfig.java Mon Jul 04 10:19:42 2016 +0200 @@ -33,6 +33,11 @@ final class HotSpotJVMCICompilerConfig { + /** + * This factory allows JVMCI initialization to succeed but raises an error if the VM asks JVMCI + * to perform a compilation. This allows the reflective parts of the JVMCI API to be used + * without requiring a compiler implementation to be available. + */ private static class DummyCompilerFactory extends JVMCICompilerFactory implements JVMCICompiler { public CompilationRequestResult compileMethod(CompilationRequest request) {