-
Enhancement
-
Resolution: Fixed
-
P4
-
22
-
b04
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8334642 | 21.0.5 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
Turning on -Wconversion and off -Werror and filtering for the most numerous -Wconversion warnings shows that many come from a few specific .hpp files where the warning is reported for all files that include the file.
6054 /scratch/cphillim/hg/21more-conversion/src/hotspot/share/compiler/oopMap.hpp
5075 /scratch/cphillim/hg/21more-conversion/src/hotspot/cpu/x86/vmreg_x86.hpp
4068 /scratch/cphillim/hg/21more-conversion/src/hotspot/cpu/x86/register_x86.hpp
2836 /scratch/cphillim/hg/21more-conversion/src/hotspot/cpu/x86/macroAssembler_x86.hpp
1594 /scratch/cphillim/hg/21more-conversion/src/hotspot/cpu/x86/assembler_x86.hpp
1368 /scratch/cphillim/hg/21more-conversion/src/hotspot/share/runtime/registerMap.hpp
941 /scratch/cphillim/hg/21more-conversion/src/hotspot/cpu/x86/assembler_x86.cpp
With a few checked_cast<>, direct casts, narrowing return types, and promoting argument types can eliminate these warnings.
6054 /scratch/cphillim/hg/21more-conversion/src/hotspot/share/compiler/oopMap.hpp
5075 /scratch/cphillim/hg/21more-conversion/src/hotspot/cpu/x86/vmreg_x86.hpp
4068 /scratch/cphillim/hg/21more-conversion/src/hotspot/cpu/x86/register_x86.hpp
2836 /scratch/cphillim/hg/21more-conversion/src/hotspot/cpu/x86/macroAssembler_x86.hpp
1594 /scratch/cphillim/hg/21more-conversion/src/hotspot/cpu/x86/assembler_x86.hpp
1368 /scratch/cphillim/hg/21more-conversion/src/hotspot/share/runtime/registerMap.hpp
941 /scratch/cphillim/hg/21more-conversion/src/hotspot/cpu/x86/assembler_x86.cpp
With a few checked_cast<>, direct casts, narrowing return types, and promoting argument types can eliminate these warnings.
- backported by
-
JDK-8334642 Fix -Wconversion warnings in assembler and register code
- Resolved
- relates to
-
JDK-8177481 Prepare Runtime code for -Wconversion
- Closed
-
JDK-8331421 ubsan: vmreg.cpp checking error member call on misaligned address
- Resolved
- links to
-
Commit openjdk/jdk21u-dev/a79db00d
-
Commit openjdk/jdk/230bcb76
-
Review openjdk/jdk21u-dev/567
-
Review openjdk/jdk/14396
-
Review openjdk/jdk/14584
(3 links to)