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

Shenandoah: x86_32 builds fail after JDK-8245594

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b26
    • Verification:
      Verified

      Description

      JDK-8245594 removed some volatile-qualified members, so now x86_32 build fails with:

      In file included from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahWorkGroup.hpp:29:0,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahHeap.inline.hpp:36,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.inline.hpp:30,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.inline.hpp:31,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shared/barrierSetConfig.inline.hpp:40,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/oops/access.inline.hpp:29,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/oops/oopHandle.inline.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/oops/cpCache.inline.hpp:29,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/interpreter/abstractInterpreter.cpp:41:
      /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp: In member function 'volatile ObjArrayChunkedTask& ObjArrayChunkedTask::operator=(const volatile ObjArrayChunkedTask&) volatile':
      /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp:236:37: error: passing 'volatile oop' as 'this' argument discards qualifiers [-fpermissive]
           (void)const_cast<oop&>(_obj = t._obj);
                                           ^~~~
      In file included from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/memory/iterator.hpp:30:0,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/oops/oop.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/runtime/handles.hpp:29,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/code/oopRecorder.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/asm/codeBuffer.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/asm/assembler.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/asm/macroAssembler.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/interpreter/abstractInterpreter.cpp:26:
      /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/oops/oopsHierarchy.hpp:104:8: note: in call to 'oop& oop::operator=(const oop&)'
         oop& operator=(const oop& o) { _o = o._o; return *this; }
              ^~~~~~~~
      In file included from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahWorkGroup.hpp:29:0,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahHeap.inline.hpp:36,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.inline.hpp:30,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.inline.hpp:31,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shared/barrierSetConfig.inline.hpp:40,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/oops/access.inline.hpp:29,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/oops/oopHandle.inline.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/oops/cpCache.inline.hpp:29,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/interpreter/abstractInterpreter.cpp:41:
      /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp:236:37: error: binding 'const volatile oop' to reference of type 'const oop&' discards qualifiers
           (void)const_cast<oop&>(_obj = t._obj);
                                         ~~^~~~
      In file included from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/memory/iterator.hpp:30:0,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/oops/oop.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/runtime/handles.hpp:29,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/code/oopRecorder.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/asm/codeBuffer.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/asm/assembler.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/asm/macroAssembler.hpp:28,
                       from /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/interpreter/abstractInterpreter.cpp:26:
      /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/oops/oopsHierarchy.hpp:104:8: note: initializing argument 1 of 'oop& oop::operator=(const oop&)'
         oop& operator=(const oop& o) { _o = o._o; return *this; }
              ^~~~~~~~

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: