Skip to content

Commit 350808a

Browse files
xmas92Thomas Schatzl
authored and
Thomas Schatzl
committed
8290459: Remove unused GCCause enums
Reviewed-by: tschatzl, kbarrett
1 parent d0c365a commit 350808a

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ const char* GCCause::to_string(GCCause::Cause cause) {
7272
case _allocation_failure:
7373
return "Allocation Failure";
7474

75-
case _tenured_generation_full:
76-
return "Tenured Generation Full";
77-
7875
case _codecache_GC_threshold:
7976
return "CodeCache GC Threshold";
8077

@@ -84,12 +81,6 @@ const char* GCCause::to_string(GCCause::Cause cause) {
8481
case _metadata_GC_clear_soft_refs:
8582
return "Metadata GC Clear Soft References";
8683

87-
case _old_generation_expanded_on_last_scavenge:
88-
return "Old Generation Expanded On Last Scavenge";
89-
90-
case _old_generation_too_full_to_scavenge:
91-
return "Old Generation Too Full To Scavenge";
92-
9384
case _adaptive_size_policy:
9485
return "Ergonomics";
9586

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,10 @@ class GCCause : public AllStatic {
6363

6464
/* implementation specific */
6565

66-
_tenured_generation_full,
6766
_codecache_GC_threshold,
6867
_metadata_GC_threshold,
6968
_metadata_GC_clear_soft_refs,
7069

71-
_old_generation_expanded_on_last_scavenge,
72-
_old_generation_too_full_to_scavenge,
7370
_adaptive_size_policy,
7471

7572
_g1_inc_collection_pause,
@@ -109,17 +106,11 @@ class GCCause : public AllStatic {
109106

110107
// Causes for collection of the tenured gernation
111108
inline static bool is_tenured_allocation_failure_gc(GCCause::Cause cause) {
112-
assert(cause != GCCause::_old_generation_too_full_to_scavenge &&
113-
cause != GCCause::_old_generation_expanded_on_last_scavenge,
114-
"This GCCause may be correct but is not expected yet: %s",
115-
to_string(cause));
116-
// _tenured_generation_full for full tenured generations
117109
// _adaptive_size_policy for a full collection after a young GC
118110
// _allocation_failure is the generic cause a collection which could result
119111
// in the collection of the tenured generation if there is not enough space
120112
// in the tenured generation to support a young GC.
121-
return (cause == GCCause::_tenured_generation_full ||
122-
cause == GCCause::_adaptive_size_policy ||
113+
return (cause == GCCause::_adaptive_size_policy ||
123114
cause == GCCause::_allocation_failure);
124115
}
125116

0 commit comments

Comments
 (0)