comparison src/share/vm/graal/graalCompilerToVM.cpp @ 10577:9c7d9e2c8326

PTX kernel execution - no args or return value
author Morris Meyer <morris.meyer@oracle.com>
date Sat, 29 Jun 2013 21:29:34 -0400
parents 7cd21876c116
children b0b368d38b40
comparison
equal deleted inserted replaced
10576:aee899c96b0b 10577:9c7d9e2c8326
967 assert(cb == NULL, "should be"); 967 assert(cb == NULL, "should be");
968 } else { 968 } else {
969 if (!installed_code_handle.is_null()) { 969 if (!installed_code_handle.is_null()) {
970 assert(installed_code_handle->is_a(HotSpotInstalledCode::klass()), "wrong type"); 970 assert(installed_code_handle->is_a(HotSpotInstalledCode::klass()), "wrong type");
971 HotSpotInstalledCode::set_codeBlob(installed_code_handle, (jlong) cb); 971 HotSpotInstalledCode::set_codeBlob(installed_code_handle, (jlong) cb);
972 HotSpotInstalledCode::set_start(installed_code_handle, (jlong) cb->code_begin()); 972 oop comp_result = HotSpotCompiledCode::comp(compiled_code_handle);
973 if (comp_result->is_a(ExternalCompilationResult::klass())) {
974 tty->print_cr("installCode0: ExternalCompilationResult");
975 HotSpotInstalledCode::set_start(installed_code_handle, ExternalCompilationResult::kernel(comp_result));
976 } else {
977 HotSpotInstalledCode::set_start(installed_code_handle, (jlong) cb->code_begin());
978 }
973 nmethod* nm = cb->as_nmethod_or_null(); 979 nmethod* nm = cb->as_nmethod_or_null();
974 assert(nm == NULL || !installed_code_handle->is_scavengable() || nm->on_scavenge_root_list(), "nm should be scavengable if installed_code is scavengable"); 980 assert(nm == NULL || !installed_code_handle->is_scavengable() || nm->on_scavenge_root_list(), "nm should be scavengable if installed_code is scavengable");
975 } 981 }
976 } 982 }
977 return result; 983 return result;