Mercurial > hg > truffle
comparison src/gpu/hsail/vm/gpu_hsail.cpp @ 15161:2c940b1a48d8
Convert InstalledCode from an interface into an abstract class.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 15 Apr 2014 15:01:40 +0200 |
parents | 0e689f20706e |
children | 66e3af78ea96 |
comparison
equal
deleted
inserted
replaced
15160:a47e68e146a2 | 15161:2c940b1a48d8 |
---|---|
135 | 135 |
136 GPU_VMENTRY(jboolean, Hsail::execute_kernel_void_1d, (JNIEnv* env, jclass, jobject kernel_handle, jint dimX, jobject args, jobject oops_save, | 136 GPU_VMENTRY(jboolean, Hsail::execute_kernel_void_1d, (JNIEnv* env, jclass, jobject kernel_handle, jint dimX, jobject args, jobject oops_save, |
137 jobject donor_threads, jint allocBytesPerWorkitem)) | 137 jobject donor_threads, jint allocBytesPerWorkitem)) |
138 | 138 |
139 ResourceMark rm; | 139 ResourceMark rm; |
140 jlong nmethodValue = HotSpotInstalledCode::codeBlob(kernel_handle); | 140 jlong nmethodValue = InstalledCode::address(kernel_handle); |
141 if (nmethodValue == 0) { | 141 if (nmethodValue == 0) { |
142 SharedRuntime::throw_and_post_jvmti_exception(JavaThread::current(), vmSymbols::com_oracle_graal_api_code_InvalidInstalledCodeException(), NULL); | 142 SharedRuntime::throw_and_post_jvmti_exception(JavaThread::current(), vmSymbols::com_oracle_graal_api_code_InvalidInstalledCodeException(), NULL); |
143 } | 143 } |
144 nmethod* nm = (nmethod*) (address) nmethodValue; | 144 nmethod* nm = (nmethod*) (address) nmethodValue; |
145 methodHandle mh = nm->method(); | 145 methodHandle mh = nm->method(); |