comparison src/share/vm/utilities/exceptions.cpp @ 4981:1b8d02e10ee8

Remove the hacks around "is_Compiler_thread" assertions; Graal no longer uses the compiler thread mechanisms; don't create a C++ compilation queue or any compiler threads.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 27 Feb 2012 22:15:05 +0100
parents 99d3d8a72252
children 957c266d8bc5
comparison
equal deleted inserted replaced
4980:1c7c5be93e84 4981:1b8d02e10ee8
93 "need to increase min_stack_allowed calculation"); 93 "need to increase min_stack_allowed calculation");
94 } 94 }
95 #endif // ASSERT 95 #endif // ASSERT
96 96
97 if (thread->is_VM_thread() 97 if (thread->is_VM_thread()
98 #ifndef GRAAL 98 || thread->is_Compiler_thread() ) {
99 || thread->is_Compiler_thread()
100 #endif
101 ) {
102 // We do not care what kind of exception we get for the vm-thread or a thread which 99 // We do not care what kind of exception we get for the vm-thread or a thread which
103 // is compiling. We just install a dummy exception object 100 // is compiling. We just install a dummy exception object
104 thread->set_pending_exception(Universe::vm_exception(), file, line); 101 thread->set_pending_exception(Universe::vm_exception(), file, line);
105 return true; 102 return true;
106 } 103 }
119 } 116 }
120 ShouldNotReachHere(); 117 ShouldNotReachHere();
121 } 118 }
122 119
123 if (thread->is_VM_thread() 120 if (thread->is_VM_thread()
124 #ifndef GRAAL 121 || thread->is_Compiler_thread() ) {
125 || thread->is_Compiler_thread()
126 #endif
127 ) {
128 // We do not care what kind of exception we get for the vm-thread or a thread which 122 // We do not care what kind of exception we get for the vm-thread or a thread which
129 // is compiling. We just install a dummy exception object 123 // is compiling. We just install a dummy exception object
130 thread->set_pending_exception(Universe::vm_exception(), file, line); 124 thread->set_pending_exception(Universe::vm_exception(), file, line);
131 return true; 125 return true;
132 } 126 }