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

ZGC: Enhance zaddress type system's assert messages

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • gc

      ZGC uses a family of strongly type integral types to test and verify invariants for addresses, offset, indices and colored pointers within the heap. It is usually the first place we hit an assert if something goes wrong, and looking at the actual value is often enough to identify if it is memory corruption, a broken color invariant or a mistake in the use of the type system.

      Unfortunately not all asserts print the value in the assert message, requiring more extensive investigation to even identify the nature of the problem.

      I propose we enhance all our zaddress assert printing to always include the invariant breaking value.

            aboldtch Axel Boldt-Christmas
            aboldtch Axel Boldt-Christmas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: