8277981: String Deduplication table is never cleaned up due to bad dead_factor_for_cleanup
Backport-of: 8d7958e46969fd59df7bc6dd1cbe31ae63686b05
diff --git a/src/hotspot/share/gc/shared/stringdedup/stringDedupConfig.cpp b/src/hotspot/share/gc/shared/stringdedup/stringDedupConfig.cpp
index 23d13ce..71ec8d5 100644
--- a/src/hotspot/share/gc/shared/stringdedup/stringDedupConfig.cpp
+++ b/src/hotspot/share/gc/shared/stringdedup/stringDedupConfig.cpp
@@ -161,6 +161,6 @@
_load_factor_for_shrink = StringDeduplicationShrinkTableLoad;
_load_factor_target = StringDeduplicationTargetTableLoad;
_minimum_dead_for_cleanup = StringDeduplicationCleanupDeadMinimum;
- _dead_factor_for_cleanup = percent_of(StringDeduplicationCleanupDeadPercent, 100);
+ _dead_factor_for_cleanup = StringDeduplicationCleanupDeadPercent / 100.0;
_hash_seed = initial_hash_seed();
}