RFR: 8350344: Cross-build failure: _vptr conflicts with internal virtual virtual table field
Boris Ulasevich
bulasevich at openjdk.org
Wed Feb 19 16:21:27 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;
@vnkozlov It seems that this is rather a toolchain bug than an issue in the HotSpot sources. However, do you think we could rename _vptr to resolve the issue?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23703#issuecomment-2669125748
More information about the hotspot-compiler-dev
mailing list