Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java @ 22779:b41377216cf9
JVMCICompiler.compileMethod should always return non-null
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 19 Jan 2016 13:32:31 -0800 |
parents | 9273bb6ba33e |
children | 7b09dede4552 |
comparison
equal
deleted
inserted
replaced
22778:215f448ed1d7 | 22779:b41377216cf9 |
---|---|
241 /** | 241 /** |
242 * Called from the VM. | 242 * Called from the VM. |
243 */ | 243 */ |
244 @SuppressWarnings({"unused"}) | 244 @SuppressWarnings({"unused"}) |
245 private CompilationRequestResult compileMethod(HotSpotResolvedJavaMethod method, int entryBCI, long jvmciEnv, int id) { | 245 private CompilationRequestResult compileMethod(HotSpotResolvedJavaMethod method, int entryBCI, long jvmciEnv, int id) { |
246 return getCompiler().compileMethod(new HotSpotCompilationRequest(method, entryBCI, jvmciEnv, id)); | 246 CompilationRequestResult result = getCompiler().compileMethod(new HotSpotCompilationRequest(method, entryBCI, jvmciEnv, id)); |
247 assert result != null : "compileMethod must always return something"; | |
248 return result; | |
247 } | 249 } |
248 | 250 |
249 /** | 251 /** |
250 * Shuts down the runtime. | 252 * Shuts down the runtime. |
251 * | 253 * |