8062284: Sweeper thread should not be visible when calling Thread.getAllStackTraces()
Summary: Make thread not visible when calling Thread.getAllStackTraces()
Reviewed-by: kvn, shade
--- 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".