Mismatch !PRODUCT vs ASSERT for CollectedHeap::check_for_non_bad_heap_word_value

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P5
    • tbd
    • Affects Version/s: 14
    • Component/s: hotspot
    • None
    • gc

      There is a !PRODUCT vs ASSERT mismatch for CollectedHeap::check_for_non_bad_heap_word_value. The definition is !PRODUCT, but the filling is debug-only (see SpaceMangler::mangle_region). This means the function will fail in "optimized" builds. This filling and checking is inappropriate for an "optimized" build, and this should all be debug-only.

      see: https://mail.openjdk.java.net/pipermail/hotspot-dev/2019-October/039804.html

            Assignee:
            Unassigned
            Reporter:
            Leo Korinth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: