Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/exceptions.cpp @ 1410:b30a2cd5e3a2
Added methods to c1x_VMExits.cpp
Some memos:
- the result is not stored in a jobject, but in an oop! => (oop)get_as_jobject()
- we get problems with locks hold by the user program when disabling background compilation => currently this makes an assert, we need a better solution
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Wed, 12 May 2010 16:29:41 +0200 |
parents | 4ce7240d622c |
children | 2d26b0046e0d |
comparison
equal
deleted
inserted
replaced
1407:09e7826ecf01 | 1410:b30a2cd5e3a2 |
---|---|
60 vm_exit_during_initialization(h_exception); | 60 vm_exit_during_initialization(h_exception); |
61 ShouldNotReachHere(); | 61 ShouldNotReachHere(); |
62 } | 62 } |
63 | 63 |
64 if (thread->is_VM_thread() | 64 if (thread->is_VM_thread() |
65 || thread->is_Compiler_thread() ) { | 65 // (tw) May we do this? |
66 /*|| thread->is_Compiler_thread()*/ ) { | |
66 // We do not care what kind of exception we get for the vm-thread or a thread which | 67 // We do not care what kind of exception we get for the vm-thread or a thread which |
67 // is compiling. We just install a dummy exception object | 68 // is compiling. We just install a dummy exception object |
68 thread->set_pending_exception(Universe::vm_exception(), file, line); | 69 thread->set_pending_exception(Universe::vm_exception(), file, line); |
69 return true; | 70 return true; |
70 } | 71 } |
83 } | 84 } |
84 ShouldNotReachHere(); | 85 ShouldNotReachHere(); |
85 } | 86 } |
86 | 87 |
87 if (thread->is_VM_thread() | 88 if (thread->is_VM_thread() |
88 || thread->is_Compiler_thread() ) { | 89 // (tw) May we do this? |
90 /* || thread->is_Compiler_thread()*/ ) { | |
89 // We do not care what kind of exception we get for the vm-thread or a thread which | 91 // 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 | 92 // is compiling. We just install a dummy exception object |
91 thread->set_pending_exception(Universe::vm_exception(), file, line); | 93 thread->set_pending_exception(Universe::vm_exception(), file, line); |
92 return true; | 94 return true; |
93 } | 95 } |