comparison src/share/vm/jvmci/jvmciRuntime.cpp @ 23387:a920338dd4d4

remove JVMCIError and UnsafeUtil classes (JDK-8156759)
author Doug Simon <doug.simon@oracle.com>
date Wed, 11 May 2016 15:54:36 +0200
parents 6ee2af864395
children b3a816d3b844
comparison
equal deleted inserted replaced
23386:2625b10989ee 23387:a920338dd4d4
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);
1057 } 1044 }
1058 1045
1059 Klass* JVMCIRuntime::resolve_or_null(Symbol* name, TRAPS) { 1046 Klass* JVMCIRuntime::resolve_or_null(Symbol* name, TRAPS) {
1060 assert(!UseJVMCIClassLoader || SystemDictionary::jvmci_loader() != NULL, "JVMCI classloader should have been initialized"); 1047 assert(!UseJVMCIClassLoader || SystemDictionary::jvmci_loader() != NULL, "JVMCI classloader should have been initialized");
1061 return SystemDictionary::resolve_or_null(name, SystemDictionary::jvmci_loader(), Handle(), CHECK_NULL); 1048 return SystemDictionary::resolve_or_null(name, SystemDictionary::jvmci_loader(), Handle(), CHECK_NULL);