ZGC: Incorrect type signature in ZMappedCache comparator

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 25
    • Component/s: hotspot
    • gc
    • b13

      The type signature for 'int ZMappedCache::EntryCompare::cmp(const IntrusiveRBNode* a, const IntrusiveRBNode* b)' is incorrect. As described in rbTree.hpp, the cmp function used for tree validation should return a bool (true if a < b, false otherwise).

      The incorrect signature prevents IntrusiveRBTree from using cmp as intended during validation, resulting in the fallback verify function being used, which always returns valid node comparisons. This could mask potential issues in the tree structure.

            Assignee:
            Joel Sikström
            Reporter:
            Casper Norrbin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: