RFR: 8356083: ZGC: Duplicate ZTestEntry symbols in gtests

Joel Sikström jsikstro at openjdk.org
Mon May 5 09:50:55 UTC 2025


Hello,

There are duplicate definitions of ZTestEntry (one in test_zList.cpp and one in test_zIntrusiveRBTree.cpp). This results in a crash when running the ZList tests on slowdebug, where the ZTestEntry symbol from test_zIntrusiveRBTre.cpp is used over the one in test_zList.cpp.

To remove the collision, I've renamed ZTestEntry in test_zIntrusiveRBTre.cpp to ZRBTestEntry, and ZTestEntryCompare to ZRBTestEntryCompare to reflect this change.

I've verified that the gtests run and pass by running them locally on release, fastdebug and slowdebug.

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

Commit messages:
 - Also rename ZTestEntryCompare
 - 8356083: ZGC: Duplicate ZTestEntry symbols in gtests

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

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


More information about the hotspot-gc-dev mailing list