equal
deleted
inserted
replaced
158 inline void do_array(int begin, int end) { if (!is_return_type()) _jca->push_oop(next_arg(T_OBJECT)); } |
158 inline void do_array(int begin, int end) { if (!is_return_type()) _jca->push_oop(next_arg(T_OBJECT)); } |
159 inline void do_void() { } |
159 inline void do_void() { } |
160 }; |
160 }; |
161 |
161 |
162 class JNIHandleMark : public StackObj { |
162 class JNIHandleMark : public StackObj { |
|
163 JavaThread* _thread; |
163 public: |
164 public: |
164 JNIHandleMark() { push_jni_handle_block(); } |
165 JNIHandleMark(JavaThread* thread) : _thread(thread) { push_jni_handle_block(thread); } |
165 ~JNIHandleMark() { pop_jni_handle_block(); } |
166 ~JNIHandleMark() { pop_jni_handle_block(_thread); } |
166 |
167 |
167 private: |
168 private: |
168 static void push_jni_handle_block(); |
169 static void push_jni_handle_block(JavaThread* thread); |
169 static void pop_jni_handle_block(); |
170 static void pop_jni_handle_block(JavaThread* thread); |
170 }; |
171 }; |
171 |
172 |
172 #endif // SHARE_JVMCI_JVMCICOMPILERTOVM_HPP |
173 #endif // SHARE_JVMCI_JVMCICOMPILERTOVM_HPP |