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

Build error: address argument to atomic builtin must be a pointer to integer or pointer ('volatile narrowOop *' invalid)

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      * Symptom
      ------------------------------------------------
      /jdk/src/hotspot/os_cpu/bsd_zero/atomic_bsd_zero.hpp:258:10: error: address argument to atomic builtin must be a pointer to integer or pointer ('volatile narrowOop *' invalid)
        return __sync_val_compare_and_swap(dest, compare_value, exchange_value);
               ^ ~~~~
      ./src/hotspot/share/runtime/atomic.hpp:746:12: note: in instantiation of function template specialization 'Atomic::PlatformCmpxchg<4>::operator()<narrowOop>' requested here
          return PlatformCmpxchg<sizeof(T)>()(dest,
                 ^
      ./src/hotspot/share/runtime/atomic.hpp:722:10: note: in instantiation of member function 'Atomic::CmpxchgImpl<narrowOop, narrowOop, narrowOop, void>::operator()' requested here
        return CmpxchgImpl<D, U, T>()(dest, compare_value, exchange_value, order);
               ^
         ... (rest of output omitted)
      ------------------------------------------------

      * Reproduce
      Build Zero VMs with clang on Linux or MacOS platforms

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jiefu Jie Fu
              Reporter:
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: