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


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;

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

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

Changes: https://git.openjdk.org/jdk/pull/23703/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23703&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8350344
  Stats: 23 lines in 3 files changed: 0 ins; 0 del; 23 mod
  Patch: https://git.openjdk.org/jdk/pull/23703.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23703/head:pull/23703

PR: https://git.openjdk.org/jdk/pull/23703


More information about the hotspot-compiler-dev mailing list