JDK-8307997 : gtest:ZIndexDistributorTest fails on PPC64
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-05-12
  • Updated: 2023-05-17
  • Resolved: 2023-05-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21 b23Fixed
Related Reports
Relates :  
Description
2 tests are failing on PPC64 when running
make run-test TEST="gtest:ZIndexDistributorTest"

test/hotspot/gtest/gc/z/test_zIndexDistributor.cpp:41: Failure
Expected equality of these values:
  ZIndexDistributorClaimTree::claim_level_end_index(0)
    Which is: 32
  16

test/hotspot/gtest/gc/z/test_zIndexDistributor.cpp:73: Failure
Expected equality of these values:
  ZIndexDistributorClaimTree::claim_index(indices, 1)
    Which is: 32
  second_level_start
    Which is: 16

ZIndexDistributorStriped uses ZCacheLineSize which is twice as high as on the other supported platforms.
Seems like the test only works for ZCacheLineSize = 64. So, I guess the issue is not limited to PPC64 in general (e.g. s390 would also be affected, but currently has no ZGC support).
Comments
Changeset: 97b2ca3d Author: Stefan Karlsson <stefank@openjdk.org> Date: 2023-05-15 13:52:34 +0000 URL: https://git.openjdk.org/jdk/commit/97b2ca3de76046c6f52d3649d8787feea7b9ac83
15-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13977 Date: 2023-05-15 07:57:34 +0000
15-05-2023