We may replace the non-default copy constructor and assignment with the default ones. This would also make the class TriviallyCopiable.
This change would also fix a build failure I'm getting with clang20:
/jdk/src/hotspot/share/oops/resolvedMethodEntry.cpp:43:12: error: first argument in call to 'memset' is a pointer to non-trivially copyable type 'ResolvedMethodEntry' [-Werror,-Wnontrivial-memcall]
This change would also fix a build failure I'm getting with clang20:
/jdk/src/hotspot/share/oops/resolvedMethodEntry.cpp:43:12: error: first argument in call to 'memset' is a pointer to non-trivially copyable type 'ResolvedMethodEntry' [-Werror,-Wnontrivial-memcall]
- caused by
-
JDK-8293980 Resolve CONSTANT_FieldRef at CDS dump time
-
- Resolved
-
-
JDK-8309634 Resolve CONSTANT_MethodRef at CDS dump time
-
- Resolved
-
- duplicates
-
JDK-8357579 Compilation error: first argument in call to 'memset' is a pointer to non-trivially copyable type
-
- Open
-
-
JDK-8357579 Compilation error: first argument in call to 'memset' is a pointer to non-trivially copyable type
-
- Open
-
- relates to
-
JDK-8366193 Add comments about ResolvedFieldEntry::copy_from()
-
- Resolved
-
- links to
-
Review(master) openjdk/jdk/26818
(1 links to)