Skip to content

Commit 8b65611

Browse files
committedMar 30, 2022
8283789: CompilerPhaseTypeHelper::to_bitmask should operate on uint64_t
Reviewed-by: chagedorn, thartmann
1 parent 9bb916d commit 8b65611

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/hotspot/share/opto/phasetype.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ class CompilerPhaseTypeHelper {
9797
static const char* to_description(CompilerPhaseType cpt) {
9898
return phase_descriptions[cpt];
9999
}
100-
static int to_bitmask(CompilerPhaseType cpt) {
101-
return (1 << cpt);
100+
static uint64_t to_bitmask(CompilerPhaseType cpt) {
101+
return (UINT64_C(1) << cpt);
102102
}
103103
};
104104

0 commit comments

Comments
 (0)
Please sign in to comment.