RFR: 8316694: Implement relocation of nmethod within CodeCache [v4]

Evgeny Astigeevich eastigeevich at openjdk.org
Mon Mar 17 21:52:11 UTC 2025


On Mon, 17 Mar 2025 21:47:06 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:

>> Without I get the following error
>> 
>> error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of non-trivially copyable type ‘class nmethod’; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
>
> @chadrako See https://en.cppreference.com/w/cpp/language/classes#Trivially_copyable_class

And https://en.cppreference.com/w/cpp/named_req/TriviallyCopyable

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23573#discussion_r1999723016


More information about the hotspot-compiler-dev mailing list