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

Narrow types of ConstantPool and ConstMethod returns

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b25


      Runtime code in the oops directory stores 'int' values into 'u2' containers for ConstantPool and ConstMethod. Changing return types to u2 and using u2 as variables, avoids -Wconversion warnings in these source files. There's some fan out. To avoid infinite fan out, added some check_cast<u2> casts for types known to be u2 as specified in the JVMS.

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

              Created:
              Updated:
              Resolved: