Changes for 6975078 produce build error with certain gcc versions

XMLWordPrintable

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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: