Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356083

ZGC: Duplicate ZTestEntry symbols in gtests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • None
    • hotspot
    • gc

      There are two ZTestEntry symbols, one in test_zList.cpp and one in test_zIntrusiveRBTree.cpp. When building with slowdebug, the ZList tests in test_zList.cpp use the ZTestEntry defined in test_zIntrusiveRBTree.cpp, which results in a crash.

      Running test 'gtest:ZList/server'
      Note: Google Test filter = ZList*
      [==========] Running 2 tests from 1 test suite.
      [----------] Global test environment set-up.
      [----------] 2 tests from ZListTest
      [ RUN ] ZListTest.test_insert
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (open/src/hotspot/share/gc/z/zList.inline.hpp:52), pid=427706, tid=427706
      # assert(_next == this) failed: Should not be in a list
      #
      # JRE version: ((uninitialized)) (slowdebug build )
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (slowdebug 25-internal-LTS-2025-05-02-1245029.cphillim..., mixed mode, sharing, tiered, compressed class ptrs, unknown gc, linux-amd64)
      # Core dump will be written. Default location: /build/linux-x64/test-support/gtest_ZList_server/core.427706

            jsikstro Joel Sikstrom
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: