Mercurial > hg > truffle
comparison src/share/vm/utilities/exceptions.cpp @ 15463:a20be10ad437
made Graal work with the HotSpot compiler queue and compiler threads, enabled by -XX:-UseGraalCompilationQueue
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 02 May 2014 00:36:27 +0200 |
parents | 4ca6dc0799b6 |
children | 89152779163c |
comparison
equal
deleted
inserted
replaced
15462:05d3f069cff2 | 15463:a20be10ad437 |
---|---|
82 "need to increase min_stack_allowed calculation"); | 82 "need to increase min_stack_allowed calculation"); |
83 } | 83 } |
84 #endif // ASSERT | 84 #endif // ASSERT |
85 | 85 |
86 if (thread->is_VM_thread() | 86 if (thread->is_VM_thread() |
87 || thread->is_Compiler_thread() ) { | 87 || !thread->can_call_java() ) { |
88 // We do not care what kind of exception we get for the vm-thread or a thread which | 88 // We do not care what kind of exception we get for the vm-thread or a thread which |
89 // is compiling. We just install a dummy exception object | 89 // is compiling. We just install a dummy exception object |
90 thread->set_pending_exception(Universe::vm_exception(), file, line); | 90 thread->set_pending_exception(Universe::vm_exception(), file, line); |
91 return true; | 91 return true; |
92 } | 92 } |
105 } | 105 } |
106 ShouldNotReachHere(); | 106 ShouldNotReachHere(); |
107 } | 107 } |
108 | 108 |
109 if (thread->is_VM_thread() | 109 if (thread->is_VM_thread() |
110 || thread->is_Compiler_thread() ) { | 110 || !thread->can_call_java() ) { |
111 // We do not care what kind of exception we get for the vm-thread or a thread which | 111 // We do not care what kind of exception we get for the vm-thread or a thread which |
112 // is compiling. We just install a dummy exception object | 112 // is compiling. We just install a dummy exception object |
113 thread->set_pending_exception(Universe::vm_exception(), file, line); | 113 thread->set_pending_exception(Universe::vm_exception(), file, line); |
114 return true; | 114 return true; |
115 } | 115 } |