< prev index next >
src/hotspot/share/runtime/thread.cpp
Print this page
rev 54213 : [mq]: 8220774-handshakealot-v3
@@ -2946,10 +2946,18 @@
if (jvmti_thread_state() != NULL) {
jvmti_thread_state()->oops_do(f);
}
}
+#ifdef ASSERT
+void JavaThread::verify_states_for_handshake() {
+ // This checks that the thread has a correct frame state during a handshake.
+ assert((!has_last_Java_frame() && java_call_counter() == 0) ||
+ (has_last_Java_frame() && java_call_counter() > 0), "wrong java_sp info!");
+}
+#endif
+
void JavaThread::nmethods_do(CodeBlobClosure* cf) {
assert((!has_last_Java_frame() && java_call_counter() == 0) ||
(has_last_Java_frame() && java_call_counter() > 0), "wrong java_sp info!");
if (has_last_Java_frame()) {
< prev index next >