Skip to content
Permalink
Browse files

8264178: Unused method Threads::nmethods_do

Reviewed-by: coleenp, dholmes
  • Loading branch information
albertnetymk committed Mar 26, 2021
1 parent 33c94ff commit 3a28dc82131453da4da2baece5950cfe653d76ca
Showing with 0 additions and 14 deletions.
  1. +0 −11 src/hotspot/share/runtime/thread.cpp
  2. +0 −3 src/hotspot/share/runtime/thread.hpp
@@ -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);
@@ -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*));

1 comment on commit 3a28dc8

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 3a28dc8 Mar 26, 2021

Please sign in to comment.