changeset 59481:4b2683794ea2

8245942: Shenandoah: x86_32 builds fail after JDK-8245594 Reviewed-by: zgu
author shade
date Thu, 28 May 2020 18:50:56 +0200
parents 501a2429fe7a
children ba5a3bb0a027
files src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp
diffstat 1 files changed, 2 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp	Thu May 28 09:26:11 2020 -0700
+++ b/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp	Thu May 28 18:50:56 2020 +0200
@@ -154,17 +154,8 @@
     assert(decode_pow(encode_pow(pow)) == pow, "pow can be encoded: %d", pow);
     _obj = encode_oop(o) | encode_chunk(chunk) | encode_pow(pow);
   }
-  ObjArrayChunkedTask(const ObjArrayChunkedTask& t): _obj(t._obj) { }
 
-  ObjArrayChunkedTask& operator =(const ObjArrayChunkedTask& t) {
-    _obj = t._obj;
-    return *this;
-  }
-  volatile ObjArrayChunkedTask&
-  operator =(const volatile ObjArrayChunkedTask& t) volatile {
-    (void)const_cast<uintptr_t&>(_obj = t._obj);
-    return *this;
-  }
+  // Trivially copyable.
 
   inline oop decode_oop(uintptr_t val) const {
     return (oop) reinterpret_cast<void*>((val >> oop_shift) & right_n_bits(oop_bits));
@@ -223,21 +214,8 @@
     _chunk = chunk;
     _pow = pow;
   }
-  ObjArrayChunkedTask(const ObjArrayChunkedTask& t): _obj(t._obj), _chunk(t._chunk), _pow(t._pow) { }
 
-  ObjArrayChunkedTask& operator =(const ObjArrayChunkedTask& t) {
-    _obj = t._obj;
-    _chunk = t._chunk;
-    _pow = t._pow;
-    return *this;
-  }
-  volatile ObjArrayChunkedTask&
-  operator =(const volatile ObjArrayChunkedTask& t) volatile {
-    (void)const_cast<oop&>(_obj = t._obj);
-    _chunk = t._chunk;
-    _pow = t._pow;
-    return *this;
-  }
+  // Trivially copyable.
 
   inline oop obj()   const { return _obj; }
   inline int chunk() const { return _chunk; }