From a448f0b9f46de35ef26994e8540b9ae242372e8d Mon Sep 17 00:00:00 2001 From: SendaoYan Date: Wed, 21 Jan 2026 03:39:26 +0000 Subject: [PATCH] 8375668: Compiler warning implicit-const-int-float-conversion by clang23 Reviewed-by: dholmes, cnorrbin --- src/hotspot/os/linux/cgroupSubsystem_linux.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/os/linux/cgroupSubsystem_linux.hpp b/src/hotspot/os/linux/cgroupSubsystem_linux.hpp index 8aafbf49c63..d083a9985c2 100644 --- a/src/hotspot/os/linux/cgroupSubsystem_linux.hpp +++ b/src/hotspot/os/linux/cgroupSubsystem_linux.hpp @@ -188,7 +188,7 @@ class CachedMetric : public CHeapObj{ volatile jlong _next_check_counter; public: CachedMetric() { - _metric = value_unlimited; + _metric = static_cast(value_unlimited); _next_check_counter = min_jlong; } bool should_check_metric() {