--- old/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp 2020-05-27 12:36:30.760752095 +0200 +++ new/src/hotspot/share/gc/shenandoah/shenandoahTaskqueue.hpp 2020-05-27 12:36:30.300752149 +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(_obj = t._obj); - return *this; - } + // Trivially copyable. inline oop decode_oop(uintptr_t val) const { return (oop) reinterpret_cast((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(_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; }