Mercurial > hg > graal-jvmci-8
diff src/share/vm/utilities/exceptions.cpp @ 20804:7848fc12602b
Merge with jdk8u40-b25
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Tue, 07 Apr 2015 14:58:49 +0200 |
parents | 52b4284cb496 6e0cb14ce59b |
children |
line wrap: on
line diff
--- a/src/share/vm/utilities/exceptions.cpp Tue Apr 07 11:20:51 2015 +0200 +++ b/src/share/vm/utilities/exceptions.cpp Tue Apr 07 14:58:49 2015 +0200 @@ -85,9 +85,13 @@ #endif // ASSERT if (thread->is_VM_thread() - || !thread->can_call_java() ) { + || !thread->can_call_java() + || DumpSharedSpaces ) { // We do not care what kind of exception we get for the vm-thread or a thread which // is compiling. We just install a dummy exception object + // + // We also cannot throw a proper exception when dumping, because we cannot run + // Java bytecodes now. A dummy exception will suffice. thread->set_pending_exception(Universe::vm_exception(), file, line); return true; } @@ -108,9 +112,13 @@ } if (thread->is_VM_thread() - || !thread->can_call_java() ) { + || !thread->can_call_java() + || DumpSharedSpaces ) { // We do not care what kind of exception we get for the vm-thread or a thread which // is compiling. We just install a dummy exception object + // + // We also cannot throw a proper exception when dumping, because we cannot run + // Java bytecodes now. A dummy exception will suffice. thread->set_pending_exception(Universe::vm_exception(), file, line); return true; }