Mercurial > hg > truffle
diff src/share/vm/runtime/thread.hpp @ 14768:3e9a960f0da1
HSAIL: preliminary deopt support
Contributed-by: Tom Deneau <tom.deneau@amd.com>
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 26 Mar 2014 17:33:54 +0100 |
parents | d8041d695d19 |
children | 4ca6dc0799b6 |
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.hpp Wed Mar 26 17:30:40 2014 +0100 +++ b/src/share/vm/runtime/thread.hpp Wed Mar 26 17:33:54 2014 +0100 @@ -946,6 +946,17 @@ volatile address _exception_handler_pc; // PC for handler of exception volatile int _is_method_handle_return; // true (== 1) if the current exception PC is a MethodHandle call site. + // Record the method and bci from a gpu kernel exception so + // it can be added into the exception stack trace + jint _gpu_exception_bci; + Method* _gpu_exception_method; + public: + void set_gpu_exception_bci(jint bci) { _gpu_exception_bci = bci; } + jint get_gpu_exception_bci() { return _gpu_exception_bci; } + void set_gpu_exception_method(Method* method) { _gpu_exception_method = method; } + Method* get_gpu_exception_method() { return _gpu_exception_method; } + + private: // support for JNI critical regions jint _jni_active_critical; // count of entries into JNI critical region