RFR: 8316694: Implement relocation of nmethod within CodeCache [v4]
Evgeny Astigeevich
eastigeevich at openjdk.org
Mon Mar 17 21:52:10 UTC 2025
On Mon, 17 Mar 2025 20:33:09 GMT, Chad Rakoczy <duke at openjdk.org> wrote:
>> make/hotspot/lib/CompileJvm.gmk line 201:
>>
>>> 199: DISABLED_WARNINGS_gcc_jvmtiTagMap.cpp := stringop-overflow, \
>>> 200: DISABLED_WARNINGS_gcc_macroAssembler_ppc_sha.cpp := unused-const-variable, \
>>> 201: DISABLED_WARNINGS_gcc_nmethod.cpp := class-memaccess, \
>>
>> Why you need this?
>
> 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
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23573#discussion_r1999721739
More information about the hotspot-compiler-dev
mailing list