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

oops/resolvedMethodEntry.hpp could use default copy constructor

XMLWordPrintable

      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]

            fandreuzzi Francesco Andreuzzi
            fandreuzzi Francesco Andreuzzi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: