< prev index next >
src/hotspot/share/prims/whitebox.cpp
Print this page
rev 57126 : [mq]: 8234796-v2
*** 2009,2019 ****
WB_END
#endif // INCLUDE_CDS
WB_ENTRY(jint, WB_HandshakeWalkStack(JNIEnv* env, jobject wb, jobject thread_handle, jboolean all_threads))
! class TraceSelfClosure : public ThreadClosure {
jint _num_threads_completed;
void do_thread(Thread* th) {
assert(th->is_Java_thread(), "sanity");
JavaThread* jt = (JavaThread*)th;
--- 2009,2019 ----
WB_END
#endif // INCLUDE_CDS
WB_ENTRY(jint, WB_HandshakeWalkStack(JNIEnv* env, jobject wb, jobject thread_handle, jboolean all_threads))
! class TraceSelfClosure : public HandshakeClosure {
jint _num_threads_completed;
void do_thread(Thread* th) {
assert(th->is_Java_thread(), "sanity");
JavaThread* jt = (JavaThread*)th;
*** 2024,2034 ****
tty->cr();
Atomic::inc(&_num_threads_completed);
}
public:
! TraceSelfClosure() : _num_threads_completed(0) {}
jint num_threads_completed() const { return _num_threads_completed; }
};
TraceSelfClosure tsc;
--- 2024,2034 ----
tty->cr();
Atomic::inc(&_num_threads_completed);
}
public:
! TraceSelfClosure() : HandshakeClosure("WB_TraceSelf"), _num_threads_completed(0) {}
jint num_threads_completed() const { return _num_threads_completed; }
};
TraceSelfClosure tsc;
< prev index next >