8264178: Unused method Threads::nmethods_do

Reviewed-by: coleenp, dholmes
This commit is contained in:
Albert Mingkun Yang 2021-03-26 16:58:50 +00:00
parent 33c94ffc81
commit 3a28dc8213
2 changed files with 0 additions and 14 deletions

View file

@ -3955,17 +3955,6 @@ void Threads::possibly_parallel_oops_do(bool is_par, OopClosure* f, CodeBlobClos
possibly_parallel_threads_do(is_par, &tc);
}
void Threads::nmethods_do(CodeBlobClosure* cf) {
ALL_JAVA_THREADS(p) {
// This is used by the code cache sweeper to mark nmethods that are active
// on the stack of a Java thread. Ignore the sweeper thread itself to avoid
// marking CodeCacheSweeperThread::_scanned_compiled_method as active.
if(!p->is_Code_cache_sweeper_thread()) {
p->nmethods_do(cf);
}
}
}
void Threads::metadata_do(MetadataClosure* f) {
ALL_JAVA_THREADS(p) {
p->metadata_do(f);

View file

@ -1838,9 +1838,6 @@ class Threads: AllStatic {
// This version may be called by sequential or parallel code.
static void possibly_parallel_oops_do(bool is_par, OopClosure* f, CodeBlobClosure* cf);
// Sweeper
static void nmethods_do(CodeBlobClosure* cf);
// RedefineClasses support
static void metadata_do(MetadataClosure* f);
static void metadata_handles_do(void f(Metadata*));