Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8311077

Fix -Wconversion warnings in jvmti code

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • hotspot
    • b05

    Description

      JVMTI code in jvmtiClassFileReconstitutor and jvmtiRedefineClasses narrows ints into u2's to match fields in the constant pool.

      These get -Wconversion warnings when implicitly narrowed.

      When compiling with -Wconversion without -Werror, this was the count of occurrences in these files.

      34 src/hotspot/share/prims/jvmtiClassFileReconstituter.cpp
      25 src/hotspot/share/prims/jvmtiRedefineClasses.cpp
      4 src/hotspot/share/prims/jvmtiEnvBase.cpp
      2 src/hotspot/share/prims/jvmtiTrace.cpp
      2 src/hotspot/share/prims/jvmtiTagMapTable.hpp
      2 src/hotspot/share/prims/jvmtiRawMonitor.cpp
      1 src/hotspot/share/prims/jvmtiManageCapabilities.cpp
      1 src/hotspot/share/prims/jvmtiExport.cpp
      1 src/hotspot/share/prims/jvmtiEnvThreadState.cpp
      1 src/hotspot/share/prims/jvmtiCodeBlobEvents.cpp

      Attachments

        Issue Links

          Activity

            People

              coleenp Coleen Phillimore
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: