8062284: Sweeper thread should not be visible when calling Thread.getAllStackTraces()

Make thread not visible when calling Thread.getAllStackTraces()

Reviewed-by: kvn, shade
This commit is contained in:
Albert Noll 2014-10-29 15:42:48 +01:00
parent 897d6c5c9b
commit 8aa05f7690

@ -1767,6 +1767,9 @@ class CodeCacheSweeperThread : public JavaThread {
_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".