From 8b656117dd1521ff23d6039eff7d13ef63a291c8 Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Wed, 30 Mar 2022 07:11:59 +0000 Subject: [PATCH] 8283789: CompilerPhaseTypeHelper::to_bitmask should operate on uint64_t Reviewed-by: chagedorn, thartmann --- src/hotspot/share/opto/phasetype.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/opto/phasetype.hpp b/src/hotspot/share/opto/phasetype.hpp index ccc09bd4fbc..d0415317c00 100644 --- a/src/hotspot/share/opto/phasetype.hpp +++ b/src/hotspot/share/opto/phasetype.hpp @@ -97,8 +97,8 @@ class CompilerPhaseTypeHelper { static const char* to_description(CompilerPhaseType cpt) { return phase_descriptions[cpt]; } - static int to_bitmask(CompilerPhaseType cpt) { - return (1 << cpt); + static uint64_t to_bitmask(CompilerPhaseType cpt) { + return (UINT64_C(1) << cpt); } };