Skip to content

Commit 1572f3c

Browse files
committed
8263852: Unused method SoftRefPolicy::use_should_clear_all_soft_refs
Reviewed-by: tschatzl
1 parent 57497ab commit 1572f3c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/hotspot/share/gc/shared/softRefPolicy.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ SoftRefPolicy::SoftRefPolicy() :
3030
_all_soft_refs_clear(false) {
3131
}
3232

33-
bool SoftRefPolicy::use_should_clear_all_soft_refs(bool v) {
34-
bool result = _should_clear_all_soft_refs;
35-
set_should_clear_all_soft_refs(false);
36-
return result;
37-
}
38-
3933
void SoftRefPolicy::cleared_all_soft_refs() {
4034
_all_soft_refs_clear = true;
4135
}

src/hotspot/share/gc/shared/softRefPolicy.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ class SoftRefPolicy {
4545

4646
bool should_clear_all_soft_refs() { return _should_clear_all_soft_refs; }
4747
void set_should_clear_all_soft_refs(bool v) { _should_clear_all_soft_refs = v; }
48-
// Returns the current value of _should_clear_all_soft_refs.
49-
// _should_clear_all_soft_refs is set to false as a side effect.
50-
bool use_should_clear_all_soft_refs(bool v);
48+
5149
bool all_soft_refs_clear() { return _all_soft_refs_clear; }
5250
void set_all_soft_refs_clear(bool v) { _all_soft_refs_clear = v; }
5351

0 commit comments

Comments
 (0)