8062284: Sweeper thread should not be visible when calling Thread.getAllStackTraces()
authoranoll
Wed, 29 Oct 2014 15:42:48 +0100
changeset 27433 b276c91c1264
parent 27432 45b98fbc138b
child 27434 b4b185d05bb5
8062284: Sweeper thread should not be visible when calling Thread.getAllStackTraces() Summary: Make thread not visible when calling Thread.getAllStackTraces() Reviewed-by: kvn, shade
hotspot/src/share/vm/runtime/thread.hpp
--- a/hotspot/src/share/vm/runtime/thread.hpp	Tue Oct 28 20:16:08 2014 +0100
+++ b/hotspot/src/share/vm/runtime/thread.hpp	Wed Oct 29 15:42:48 2014 +0100
@@ -1767,6 +1767,9 @@
     _scanned_nmethod = nm;
   }
 
+  // Hide sweeper thread from external view.
+  bool is_hidden_from_external_view() const { return true; }
+
   bool is_Code_cache_sweeper_thread() const { return true; }
   // GC support
   // Apply "f->do_oop" to all root oops in "this".