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

Cleanup implicit casts 64 bits to 32 bits

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0, 9, 10
    • hotspot
    • sparc
    • solaris_9

      Using the Sun C++ option -xport64=implicit for the JVM 64bits build gives a lot
      warnings:
      "Warning: Converting a 64-bit type value to "int" causes truncation."
      % fgrep "Warning: Converting a 64-bit" compLP64_implicit_sort.out |uniq|wc
           980 13279 154850

      We have to cleanup them to avoid bugs like JDK-4965430.

      This problem occures in all parts of Hotspot. I will start with compiler2.

      I looked on all cases for compiler2 and didn't find any bug-like problems.
      Will cleanup in the next release.

      Vladimir

            Unassigned Unassigned
            kvn Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: