From 78e9df5088a89ca49a43c846dca0f5c47a482f0a Mon Sep 17 00:00:00 2001 From: Leo Korinth Date: Tue, 31 Mar 2026 11:41:57 +0000 Subject: [PATCH] 8380987: Fix implicit narrowing conversion in klass.hpp Reviewed-by: stefank, ayang --- src/hotspot/share/oops/klass.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/oops/klass.hpp b/src/hotspot/share/oops/klass.hpp index d59db9744cb..1c6b28127b8 100644 --- a/src/hotspot/share/oops/klass.hpp +++ b/src/hotspot/share/oops/klass.hpp @@ -466,9 +466,9 @@ protected: static const int _lh_log2_element_size_shift = BitsPerByte*0; static const int _lh_log2_element_size_mask = BitsPerLong-1; static const int _lh_element_type_shift = BitsPerByte*1; - static const int _lh_element_type_mask = right_n_bits(BitsPerByte); // shifted mask + static const int _lh_element_type_mask = right_n_bits(BitsPerByte); // shifted mask static const int _lh_header_size_shift = BitsPerByte*2; - static const int _lh_header_size_mask = right_n_bits(BitsPerByte); // shifted mask + static const int _lh_header_size_mask = right_n_bits(BitsPerByte); // shifted mask static const int _lh_array_tag_bits = 2; static const int _lh_array_tag_shift = BitsPerInt - _lh_array_tag_bits; static const int _lh_array_tag_obj_value = ~0x01; // 0x80000000 >> 30