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

Fix -Wconversion warnings in jvmti code

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: