Navigation Menu

Skip to content

Commit

Permalink
8279374: Remove unused JNIHandles::weak_oops_do
Browse files Browse the repository at this point in the history
Reviewed-by: coleenp
  • Loading branch information
albertnetymk committed Jan 4, 2022
1 parent 9bdf6eb commit 863bffb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/hotspot/share/runtime/jniHandles.cpp
Expand Up @@ -168,11 +168,6 @@ void JNIHandles::oops_do(OopClosure* f) {
}


void JNIHandles::weak_oops_do(BoolObjectClosure* is_alive, OopClosure* f) {
weak_global_handles()->weak_oops_do(is_alive, f);
}


void JNIHandles::weak_oops_do(OopClosure* f) {
weak_global_handles()->weak_oops_do(f);
}
Expand Down
2 changes: 0 additions & 2 deletions src/hotspot/share/runtime/jniHandles.hpp
Expand Up @@ -117,8 +117,6 @@ class JNIHandles : AllStatic {
// Garbage collection support(global handles only, local handles are traversed from thread)
// Traversal of regular global handles
static void oops_do(OopClosure* f);
// Traversal of weak global handles. Unreachable oops are cleared.
static void weak_oops_do(BoolObjectClosure* is_alive, OopClosure* f);
// Traversal of weak global handles.
static void weak_oops_do(OopClosure* f);

Expand Down

1 comment on commit 863bffb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.