comparison src/share/vm/jvmci/jvmciRuntime.cpp @ 23392:b3a816d3b844

Backed out changeset: a920338dd4d4
author Doug Simon <doug.simon@oracle.com>
date Thu, 12 May 2016 11:06:49 +0200
parents a920338dd4d4
children 1d4ce2d19e52
comparison
equal deleted inserted replaced
23391:dd9f3badc978 23392:b3a816d3b844
1039 // This can be very useful when debugging class initialization 1039 // This can be very useful when debugging class initialization
1040 // failures. 1040 // failures.
1041 os::sleep(THREAD, 200, false); 1041 os::sleep(THREAD, 200, false);
1042 1042
1043 vm_abort(dump_core); 1043 vm_abort(dump_core);
1044 }
1045
1046 void JVMCIRuntime::fthrow_error(Thread* thread, const char* file, int line, const char* format, ...) {
1047 const int max_msg_size = 1024;
1048 va_list ap;
1049 va_start(ap, format);
1050 char msg[max_msg_size];
1051 vsnprintf(msg, max_msg_size, format, ap);
1052 msg[max_msg_size-1] = '\0';
1053 va_end(ap);
1054 Handle h_loader = Handle(thread, SystemDictionary::jvmci_loader());
1055 Handle h_protection_domain = Handle();
1056 Exceptions::_throw_msg(thread, file, line, vmSymbols::jdk_vm_ci_common_JVMCIError(), msg, h_loader, h_protection_domain);
1044 } 1057 }
1045 1058
1046 Klass* JVMCIRuntime::resolve_or_null(Symbol* name, TRAPS) { 1059 Klass* JVMCIRuntime::resolve_or_null(Symbol* name, TRAPS) {
1047 assert(!UseJVMCIClassLoader || SystemDictionary::jvmci_loader() != NULL, "JVMCI classloader should have been initialized"); 1060 assert(!UseJVMCIClassLoader || SystemDictionary::jvmci_loader() != NULL, "JVMCI classloader should have been initialized");
1048 return SystemDictionary::resolve_or_null(name, SystemDictionary::jvmci_loader(), Handle(), CHECK_NULL); 1061 return SystemDictionary::resolve_or_null(name, SystemDictionary::jvmci_loader(), Handle(), CHECK_NULL);