Mercurial > hg > truffle
comparison src/share/vm/utilities/exceptions.cpp @ 20375:6e0cb14ce59b
8046070: Class Data Sharing clean up and refactoring
Summary: Cleaned up CDS to be more configurable, maintainable and extensible
Reviewed-by: dholmes, coleenp, acorn, mchung
author | iklam |
---|---|
date | Thu, 21 Aug 2014 13:57:51 -0700 |
parents | 78bbf4d43a14 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20374:999824269b71 | 20375:6e0cb14ce59b |
---|---|
83 "need to increase min_stack_allowed calculation"); | 83 "need to increase min_stack_allowed calculation"); |
84 } | 84 } |
85 #endif // ASSERT | 85 #endif // ASSERT |
86 | 86 |
87 if (thread->is_VM_thread() | 87 if (thread->is_VM_thread() |
88 || thread->is_Compiler_thread() ) { | 88 || thread->is_Compiler_thread() |
89 || DumpSharedSpaces ) { | |
89 // We do not care what kind of exception we get for the vm-thread or a thread which | 90 // We do not care what kind of exception we get for the vm-thread or a thread which |
90 // is compiling. We just install a dummy exception object | 91 // is compiling. We just install a dummy exception object |
92 // | |
93 // We also cannot throw a proper exception when dumping, because we cannot run | |
94 // Java bytecodes now. A dummy exception will suffice. | |
91 thread->set_pending_exception(Universe::vm_exception(), file, line); | 95 thread->set_pending_exception(Universe::vm_exception(), file, line); |
92 return true; | 96 return true; |
93 } | 97 } |
94 | 98 |
95 return false; | 99 return false; |
106 } | 110 } |
107 ShouldNotReachHere(); | 111 ShouldNotReachHere(); |
108 } | 112 } |
109 | 113 |
110 if (thread->is_VM_thread() | 114 if (thread->is_VM_thread() |
111 || thread->is_Compiler_thread() ) { | 115 || thread->is_Compiler_thread() |
116 || DumpSharedSpaces ) { | |
112 // We do not care what kind of exception we get for the vm-thread or a thread which | 117 // We do not care what kind of exception we get for the vm-thread or a thread which |
113 // is compiling. We just install a dummy exception object | 118 // is compiling. We just install a dummy exception object |
119 // | |
120 // We also cannot throw a proper exception when dumping, because we cannot run | |
121 // Java bytecodes now. A dummy exception will suffice. | |
114 thread->set_pending_exception(Universe::vm_exception(), file, line); | 122 thread->set_pending_exception(Universe::vm_exception(), file, line); |
115 return true; | 123 return true; |
116 } | 124 } |
117 return false; | 125 return false; |
118 } | 126 } |