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

Changes for 6975078 produce build error with certain gcc versions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • hs19
    • 7
    • hotspot
    • None
    • gc
    • b06
    • generic
    • linux
    • Not verified

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: