< prev index next >

src/hotspot/share/prims/whitebox.cpp

Print this page
rev 57156 : imported patch 8234796-v3

@@ -2009,11 +2009,11 @@
 WB_END
 
 #endif // INCLUDE_CDS
 
 WB_ENTRY(jint, WB_HandshakeWalkStack(JNIEnv* env, jobject wb, jobject thread_handle, jboolean all_threads))
-  class TraceSelfClosure : public ThreadClosure {
+  class TraceSelfClosure : public HandshakeClosure {
     jint _num_threads_completed;
 
     void do_thread(Thread* th) {
       assert(th->is_Java_thread(), "sanity");
       JavaThread* jt = (JavaThread*)th;

@@ -2024,11 +2024,11 @@
       tty->cr();
       Atomic::inc(&_num_threads_completed);
     }
 
   public:
-    TraceSelfClosure() : _num_threads_completed(0) {}
+    TraceSelfClosure() : HandshakeClosure("WB_TraceSelf"), _num_threads_completed(0) {}
 
     jint num_threads_completed() const { return _num_threads_completed; }
   };
   TraceSelfClosure tsc;
 
< prev index next >