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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b24
    • CPU:
      ppc
    • Verification:
      Not verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: