Narrow types of ConstantPool and ConstMethod returns

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 21
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: