void JavaThread::throwException(JavaObject* obj) { llvm_gcroot(obj, 0); JavaThread* th = JavaThread::get(); assert(th->pendingException == 0 && "pending exception already there?"); th->pendingException = obj; th->internalThrowException(); }
void JavaThread::throwPendingException() { JavaThread* th = JavaThread::get(); assert(th->pendingException); th->internalThrowException(); }