--- old/src/share/vm/utilities/exceptions.cpp 2015-09-16 15:19:17.000000000 -0700 +++ new/src/share/vm/utilities/exceptions.cpp 2015-09-16 15:19:16.000000000 -0700 @@ -85,7 +85,7 @@ #endif // ASSERT if (thread->is_VM_thread() - || thread->is_Compiler_thread() + || !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 @@ -112,7 +112,7 @@ } if (thread->is_VM_thread() - || thread->is_Compiler_thread() + || !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