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

ClearArrayNode::Identity is incorrect for 64-bit

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: hs12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b02
    • CPU:
      sparc
    • OS:
      solaris_9
    • Verification:
      Not verified

      Backports

        Description

        ClearArray::identity assumes that the count of words to clear is an int when in fact it is an intptr_t so it's a long in 64-bit. This inhibits elimination of useless ClearArrays. The fix is to use TypeX instead of TypeInt. Additionally in many cases it's possible to know at creation time there is nothing to do so we shouldn't bother to create them in those cases.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  never Tom Rodriguez
                  Reporter:
                  never Tom Rodriguez
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: