Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java @ 22699:ea58bbafd5b9
Move SpeculationLog implementation to HotSpotSpeculationLog, because it is not useful for other VMs
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Wed, 21 Oct 2015 09:06:12 -0700 |
parents | 1bbd4a7c274b |
children | d57508b1bcb5 |
comparison
equal
deleted
inserted
replaced
22698:37505a836aaf | 22699:ea58bbafd5b9 |
---|---|
145 } | 145 } |
146 compiledCode = new HotSpotCompiledNmethod(method, compResult, id, jvmciEnv); | 146 compiledCode = new HotSpotCompiledNmethod(method, compResult, id, jvmciEnv); |
147 } else { | 147 } else { |
148 compiledCode = new HotSpotCompiledCode(compResult); | 148 compiledCode = new HotSpotCompiledCode(compResult); |
149 } | 149 } |
150 int result = runtime.getCompilerToVM().installCode(target, compiledCode, resultInstalledCode, log); | 150 int result = runtime.getCompilerToVM().installCode(target, compiledCode, resultInstalledCode, (HotSpotSpeculationLog) log); |
151 if (result != config.codeInstallResultOk) { | 151 if (result != config.codeInstallResultOk) { |
152 String resultDesc = config.getCodeInstallResultDescription(result); | 152 String resultDesc = config.getCodeInstallResultDescription(result); |
153 if (compiledCode instanceof HotSpotCompiledNmethod) { | 153 if (compiledCode instanceof HotSpotCompiledNmethod) { |
154 HotSpotCompiledNmethod compiledNmethod = (HotSpotCompiledNmethod) compiledCode; | 154 HotSpotCompiledNmethod compiledNmethod = (HotSpotCompiledNmethod) compiledCode; |
155 String msg = compiledNmethod.getInstallationFailureMessage(); | 155 String msg = compiledNmethod.getInstallationFailureMessage(); |