8375668: Compiler warning implicit-const-int-float-conversion by clang23

Reviewed-by: dholmes, cnorrbin
This commit is contained in:
SendaoYan 2026-01-21 03:39:26 +00:00
parent 599ed0bb5f
commit a448f0b9f4

View File

@ -188,7 +188,7 @@ class CachedMetric : public CHeapObj<mtInternal>{
volatile jlong _next_check_counter;
public:
CachedMetric() {
_metric = value_unlimited;
_metric = static_cast<MetricType>(value_unlimited);
_next_check_counter = min_jlong;
}
bool should_check_metric() {