1472N/A * or visit www.oracle.com if you need additional information or have any
1879N/A#include "precompiled.hpp"
1879N/A#include "classfile/systemDictionary.hpp"
1879N/A#include "classfile/vmSymbols.hpp"
1879N/A#include "compiler/compileBroker.hpp"
1879N/A#include "oops/oop.inline.hpp"
1879N/A#include "runtime/javaCalls.hpp"
1879N/A#include "runtime/threadCritical.hpp"
1879N/A#include "utilities/events.hpp"
1879N/A#include "utilities/exceptions.hpp"
1879N/A# include "thread_linux.inline.hpp"
1879N/A# include "thread_solaris.inline.hpp"
1879N/A# include "thread_windows.inline.hpp"
2796N/A#ifdef TARGET_OS_FAMILY_bsd
2796N/A# include "thread_bsd.inline.hpp"
0N/A if (TraceClearedExceptions) {
0N/A _exception_line = 0;
0N/Abool Exceptions::special_exception(Thread* thread, const char* file, int line, Handle h_exception) {
2062N/Abool Exceptions::special_exception(Thread* thread, const char* file, int line, Symbol* h_name, const char* message) {
1011N/Avoid Exceptions::_throw(Thread* thread, const char* file, int line, Handle h_exception, const char* message) {
0N/A if (TraceExceptions) {
0N/A // Check for special boot-strapping/vm-thread handling
1142N/A assert(h_exception->is_a(SystemDictionary::Throwable_klass()), "exception is not a subclass of java/lang/Throwable");
3157N/A Events::log_exception(thread, "Threw " INTPTR_FORMAT " at %s:%d", (address)h_exception(), file, line);
3937N/Avoid Exceptions::_throw_msg(Thread* thread, const char* file, int line, Symbol* name, const char* message,
0N/A // Check for special boot-strapping/vm-thread handling
3937N/A Handle h_exception = new_exception(thread, name, message, h_cause, h_loader, h_protection_domain);
3937N/Avoid Exceptions::_throw_msg_cause(Thread* thread, const char* file, int line, Symbol* name, const char* message, Handle h_cause,
0N/A // Check for special boot-strapping/vm-thread handling
3937N/A Handle h_exception = new_exception(thread, name, message, h_cause, h_loader, h_protection_domain);
3937N/Avoid Exceptions::_throw_cause(Thread* thread, const char* file, int line, Symbol* name, Handle h_cause,
3937N/A // Check for special boot-strapping/vm-thread handling
3937N/Avoid Exceptions::_throw_args(Thread* thread, const char* file, int line, Symbol* name, Symbol* signature, JavaCallArguments *args) {
0N/A // Check for special boot-strapping/vm-thread handling
3937N/Avoid Exceptions::_throw_msg_cause(Thread* thread, const char* file, int line, Symbol* name, const char* message, Handle h_cause) {
3937N/A _throw_msg_cause(thread, file, line, name, message, h_cause, Handle(thread, NULL), Handle(thread, NULL));
3937N/Avoid Exceptions::_throw_msg(Thread* thread, const char* file, int line, Symbol* name, const char* message) {
3937N/Avoid Exceptions::_throw_cause(Thread* thread, const char* file, int line, Symbol* name, Handle h_cause) {
3937N/A _throw_cause(thread, file, line, name, h_cause, Handle(thread, NULL), Handle(thread, NULL));
2369N/Avoid Exceptions::throw_stack_overflow_exception(Thread* THREAD, const char* file, int line, methodHandle method) {
1787N/A assert(instanceKlass::cast(k)->is_initialized(), "need to increase min_stack_allowed calculation");
0N/A if (StackTraceInThrowable) {
2062N/Avoid Exceptions::fthrow(Thread* thread, const char* file, int line, Symbol* h_name, const char* format, ...) {
3937N/A klassOop ik = SystemDictionary::resolve_or_fail(name, h_loader, h_protection_domain, true, thread);
0N/A return h_exception;
3937N/A Handle h_exception = new_exception(thread, name, signature, args, h_loader, h_protection_domain);
3937N/A return h_exception;
0N/A return incoming_exception;
3937N/A return new_exception(thread, name, signature, &args, h_cause, h_loader, h_protection_domain);
0N/A if (is_init_completed()) {