RFR: 8316694: Implement relocation of nmethod within CodeCache [v4]
Vladimir Kozlov
kvn at openjdk.org
Mon Mar 17 21:30: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]
Okay, we need to ask C++ experts here.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23573#discussion_r1999698578
More information about the hotspot-compiler-dev
mailing list