Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java @ 23346:39f25354aeee
Sync speculation log changes with JDK9 version
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 07 Apr 2016 11:09:49 -0700 |
parents | 32d6bceb9adc |
children | b5557b757040 |
comparison
equal
deleted
inserted
replaced
23345:1c4b6a7f1917 | 23346:39f25354aeee |
---|---|
118 } | 118 } |
119 } else { | 119 } else { |
120 resultInstalledCode = installedCode; | 120 resultInstalledCode = installedCode; |
121 } | 121 } |
122 | 122 |
123 HotSpotSpeculationLog hsLog = (HotSpotSpeculationLog) log; | 123 HotSpotSpeculationLog speculationLog = (log != null && log.hasSpeculations()) ? (HotSpotSpeculationLog) log : null; |
124 int result = runtime.getCompilerToVM().installCode(target, (HotSpotCompiledCode) compiledCode, resultInstalledCode, hsLog.hasSpeculations() ? hsLog : null); | 124 |
125 int result = runtime.getCompilerToVM().installCode(target, (HotSpotCompiledCode) compiledCode, resultInstalledCode, speculationLog); | |
125 if (result != config.codeInstallResultOk) { | 126 if (result != config.codeInstallResultOk) { |
126 String resultDesc = config.getCodeInstallResultDescription(result); | 127 String resultDesc = config.getCodeInstallResultDescription(result); |
127 if (compiledCode instanceof HotSpotCompiledNmethod) { | 128 if (compiledCode instanceof HotSpotCompiledNmethod) { |
128 HotSpotCompiledNmethod compiledNmethod = (HotSpotCompiledNmethod) compiledCode; | 129 HotSpotCompiledNmethod compiledNmethod = (HotSpotCompiledNmethod) compiledCode; |
129 String msg = compiledNmethod.getInstallationFailureMessage(); | 130 String msg = compiledNmethod.getInstallationFailureMessage(); |