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

Changes for 6975078 produce build error with certain gcc versions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: hs19
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b06
    • CPU:
      generic
    • OS:
      linux
    • Verification:
      Not verified

      Backports

        Description

        The changes introduced for 6975078 assign badHeapOopVal to the _allocation field in the ResourceObj class. In 32 bit linux builds with certain versions of gcc this assignment will be flagged as an error while compiling allocation.cpp. In 32 bit build the constant value (which is cast to an intptr_t) is negative. The _allocation field is typed an and unsigned intptr_t and gcc catches this.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                johnc John Cuthbertson
                Reporter:
                johnc John Cuthbertson
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: