--- old/src/share/vm/runtime/thread.hpp 2014-10-28 14:49:24.293401285 +0100 +++ new/src/share/vm/runtime/thread.hpp 2014-10-28 14:49:24.221400929 +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".