Skip to content

Commit 3a28dc8

Browse files
committed
8264178: Unused method Threads::nmethods_do
Reviewed-by: coleenp, dholmes
1 parent 33c94ff commit 3a28dc8

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/hotspot/share/runtime/thread.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3955,17 +3955,6 @@ void Threads::possibly_parallel_oops_do(bool is_par, OopClosure* f, CodeBlobClos
39553955
possibly_parallel_threads_do(is_par, &tc);
39563956
}
39573957

3958-
void Threads::nmethods_do(CodeBlobClosure* cf) {
3959-
ALL_JAVA_THREADS(p) {
3960-
// This is used by the code cache sweeper to mark nmethods that are active
3961-
// on the stack of a Java thread. Ignore the sweeper thread itself to avoid
3962-
// marking CodeCacheSweeperThread::_scanned_compiled_method as active.
3963-
if(!p->is_Code_cache_sweeper_thread()) {
3964-
p->nmethods_do(cf);
3965-
}
3966-
}
3967-
}
3968-
39693958
void Threads::metadata_do(MetadataClosure* f) {
39703959
ALL_JAVA_THREADS(p) {
39713960
p->metadata_do(f);

src/hotspot/share/runtime/thread.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,9 +1838,6 @@ class Threads: AllStatic {
18381838
// This version may be called by sequential or parallel code.
18391839
static void possibly_parallel_oops_do(bool is_par, OopClosure* f, CodeBlobClosure* cf);
18401840

1841-
// Sweeper
1842-
static void nmethods_do(CodeBlobClosure* cf);
1843-
18441841
// RedefineClasses support
18451842
static void metadata_do(MetadataClosure* f);
18461843
static void metadata_handles_do(void f(Metadata*));

0 commit comments

Comments
 (0)