JDK-8314265 : Fix -Wconversion warnings in miscellaneous runtime code
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-08-15
  • Updated: 2024-09-16
  • Resolved: 2023-08-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22 b12Fixed
Related Reports
Relates :  
Relates :  
Description
Several files in runtime/utilities/services had one or two Wconversion warnings.

17 src/hotspot/share/memory/metaspace.cpp
9 src/hotspot/share/utilities/elfFile.cpp
8 src/hotspot/share/utilities/tableStatistics.cpp
5 src/hotspot/share/utilities/population_count.hpp
5 src/hotspot/share/services/nmtPreInit.hpp
5 src/hotspot/share/services/heapDumper.cpp
3 src/hotspot/share/utilities/elfSymbolTable.cpp
3 src/hotspot/share/services/memReporter.cpp
3 src/hotspot/share/services/diagnosticCommand.cpp
3 src/hotspot/share/memory/metaspace/metaspaceCommon.cpp
3 src/hotspot/share/cds/dumpTimeClassInfo.cpp
2 src/hotspot/share/utilities/ostream.cpp
2 src/hotspot/share/oops/methodCounters.cpp
2 src/hotspot/share/logging/logSelection.cpp
2 src/hotspot/share/cds/archiveHeapWriter.cpp
1 src/hotspot/share/utilities/xmlstream.cpp
1 src/hotspot/share/utilities/vmError.cpp
1 src/hotspot/share/utilities/copy.cpp
1 src/hotspot/share/services/threadStackTracker.cpp
1 src/hotspot/share/services/threadService.cpp
1 src/hotspot/share/services/threadIdTable.cpp
1 src/hotspot/share/services/mallocSiteTable.cpp
1 src/hotspot/share/runtime/vframeArray.cpp
1 src/hotspot/share/runtime/stubRoutines.cpp
1 src/hotspot/share/runtime/statSampler.cpp
1 src/hotspot/share/runtime/sharedRuntime.cpp
1 src/hotspot/share/prims/methodHandles.cpp
1 src/hotspot/share/oops/typeArrayKlass.cpp
1 src/hotspot/share/oops/objArrayKlass.cpp
1 src/hotspot/share/memory/heap.cpp
1 src/hotspot/share/logging/logOutput.cpp
1 src/hotspot/share/interpreter/templateInterpreter.cpp
1 src/hotspot/share/interpreter/interpreterRuntime.cpp
1 src/hotspot/share/cds/filemap.cpp
1 src/hotspot/share/cds/classListParser.cpp


Comments
Changeset: 75212111 Author: Coleen Phillimore <coleenp@openjdk.org> Date: 2023-08-18 12:06:02 +0000 URL: https://git.openjdk.org/jdk/commit/752121114f424d8e673ee8b7bb85f7705a82b9cc
18-08-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15233 Date: 2023-08-10 20:31:20 +0000
15-08-2023

19 src/hotspot/share/utilities/utf8.cpp utf8.cpp has intentional narrowing casts, so not included.
15-08-2023