comparison src/share/vm/utilities/exceptions.hpp @ 22299:c28cb37b2e1d

Rename JVMCI to INCLUDE_JVMCI.
author twisti
date Wed, 22 Jul 2015 08:56:03 -0700
parents be896a1983c0
children
comparison
equal deleted inserted replaced
22298:571202729bbf 22299:c28cb37b2e1d
59 59
60 class ThreadShadow: public CHeapObj<mtThread> { 60 class ThreadShadow: public CHeapObj<mtThread> {
61 friend class VMStructs; 61 friend class VMStructs;
62 62
63 protected: 63 protected:
64 #ifdef JVMCI 64 #if INCLUDE_JVMCI
65 int _pending_deoptimization; 65 int _pending_deoptimization;
66 oop _pending_failed_speculation; 66 oop _pending_failed_speculation;
67 bool _pending_monitorenter; 67 bool _pending_monitorenter;
68 bool _pending_transfer_to_interpreter; 68 bool _pending_transfer_to_interpreter;
69 #endif 69 #endif
83 public: 83 public:
84 oop pending_exception() const { return _pending_exception; } 84 oop pending_exception() const { return _pending_exception; }
85 bool has_pending_exception() const { return _pending_exception != NULL; } 85 bool has_pending_exception() const { return _pending_exception != NULL; }
86 const char* exception_file() const { return _exception_file; } 86 const char* exception_file() const { return _exception_file; }
87 int exception_line() const { return _exception_line; } 87 int exception_line() const { return _exception_line; }
88 #ifdef JVMCI 88 #if INCLUDE_JVMCI
89 int pending_deoptimization() const { return _pending_deoptimization; } 89 int pending_deoptimization() const { return _pending_deoptimization; }
90 oop pending_failed_speculation() const { return _pending_failed_speculation; } 90 oop pending_failed_speculation() const { return _pending_failed_speculation; }
91 bool has_pending_monitorenter() const { return _pending_monitorenter; } 91 bool has_pending_monitorenter() const { return _pending_monitorenter; }
92 #endif 92 #endif
93 93
94 // Code generation support 94 // Code generation support
95 static ByteSize pending_exception_offset() { return byte_offset_of(ThreadShadow, _pending_exception); } 95 static ByteSize pending_exception_offset() { return byte_offset_of(ThreadShadow, _pending_exception); }
96 #ifdef JVMCI 96 #if INCLUDE_JVMCI
97 static ByteSize pending_deoptimization_offset() { return byte_offset_of(ThreadShadow, _pending_deoptimization); } 97 static ByteSize pending_deoptimization_offset() { return byte_offset_of(ThreadShadow, _pending_deoptimization); }
98 static ByteSize pending_monitorenter_offset() { return byte_offset_of(ThreadShadow, _pending_monitorenter); } 98 static ByteSize pending_monitorenter_offset() { return byte_offset_of(ThreadShadow, _pending_monitorenter); }
99 static ByteSize pending_failed_speculation_offset() { return byte_offset_of(ThreadShadow, _pending_failed_speculation); } 99 static ByteSize pending_failed_speculation_offset() { return byte_offset_of(ThreadShadow, _pending_failed_speculation); }
100 100
101 void set_pending_monitorenter(bool b) { _pending_monitorenter = b; } 101 void set_pending_monitorenter(bool b) { _pending_monitorenter = b; }
110 // use CLEAR_PENDING_EXCEPTION whenever possible! 110 // use CLEAR_PENDING_EXCEPTION whenever possible!
111 void clear_pending_exception(); 111 void clear_pending_exception();
112 112
113 ThreadShadow() : _pending_exception(NULL), 113 ThreadShadow() : _pending_exception(NULL),
114 _exception_file(NULL), _exception_line(0) 114 _exception_file(NULL), _exception_line(0)
115 #ifdef JVMCI 115 #if INCLUDE_JVMCI
116 , _pending_monitorenter(false), _pending_deoptimization(-1), _pending_failed_speculation(NULL), _pending_transfer_to_interpreter(false) 116 , _pending_monitorenter(false), _pending_deoptimization(-1), _pending_failed_speculation(NULL), _pending_transfer_to_interpreter(false)
117 #endif 117 #endif
118 {} 118 {}
119 }; 119 };
120 120