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

Fix for Solaris Studio C++ 5.13, CHECK_UNHANDLED_OOPS breaks PPC build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b24
    • ppc
    • Not verified

        Reported by Lindenmaier, Goetz:

        unfortunately, your change breaks the ppc build (with gcc 4.1.2):

        collectedHeap.inline.hpp:85 In function "void post_allocation_notify(KlassHandle, oop, int)":
        collectedHeap.inline.hpp:85: warning: choosing "oop::operator markOopDesc*() const" over "oop::operator oopDesc*() const volatile"
        collectedHeap.inline.hpp:85: warning: for conversion from "oop" to "oopDesc*"
        collectedHeap.inline.hpp:85: warning: because conversion sequence for the argument is better

        This is because you added 'volatile' to the operator definition of the oopDesc call.

        This can be fixed by adding 'volatile' to the markOop cast operator.
        Would that be fine with you, or will it break your case? If so, I'll make the
        corresponding change.

              lfoltan Lois Foltan
              lfoltan Lois Foltan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: