RFR: 8350344: Cross-build failure: _vptr conflicts with internal virtual virtual table field

Vladimir Kozlov kvn at openjdk.org
Wed Feb 19 19:11:52 UTC 2025


On Wed, 19 Feb 2025 16:13:16 GMT, Boris Ulasevich <bulasevich at openjdk.org> wrote:

> With this change, I aim to address a build issue caused by the recent #23533 update, which introduced the CodeBlob _vptr field. This naming has led to build failures in HotSpot, reproduced on the Linaro GCC cross-toolchain for AArch64 and ARM32.
> 
> src/hotspot/share/code/codeBlob.hpp:349:21: error: member '_vptr' conflicts with virtual function table field name
>    static const Vptr _vptr;
>                      ^~~~~
> src/hotspot/share/code/codeBlob.hpp:437:21: error: member '_vptr' conflicts with virtual function table field name
>    static const Vptr _vptr;
>                      ^~~~~
> src/hotspot/share/code/codeBlob.hpp:477:21: error: member '_vptr' conflicts with virtual function table field name
>    static const Vptr _vptr;
>                      ^~~~~
> src/hotspot/share/code/codeBlob.hpp:560:21: error: member '_vptr' conflicts with virtual function table field name
>    static const Vptr _vptr;

I am fine with renaming if it solves the issue.

And it is trivial fix.

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

Marked as reviewed by kvn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/23703#pullrequestreview-2627737837
PR Comment: https://git.openjdk.org/jdk/pull/23703#issuecomment-2669530280


More information about the hotspot-compiler-dev mailing list