RFR: 8292818: replace 96-bit representation for field metadata with variable-sized streams [v4]
Frederic Parain
fparain at openjdk.org
Tue Mar 14 19:49:49 UTC 2023
On Tue, 14 Mar 2023 15:11:36 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
>> Without this declaration, builds fail on Windows with this error:
>> `error C2375: 'c2v_getDeclaredFieldsInfo': redefinition; different linkage`
>
> Strange - thats not needed for other `JVMCIEnv` methods called from `jvmciCompilerToVM.cpp`. There must be some way to avoid this.
The issue was caused by the `friend` declaration below (I cannot remember why I added in the first place), which seems to add an implicit declaration of the method that was conflicting with the original declaration of the method. Once the `friend` declaration is removed, builds on Windows don't need the `extern` declaration anymore.
-------------
PR: https://git.openjdk.org/jdk/pull/12855
More information about the serviceability-dev
mailing list