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

Mismatch !PRODUCT vs ASSERT for CollectedHeap::check_for_non_bad_heap_word_value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 14
    • 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

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

              Created:
              Updated: