Better argument formatting for assert() and friends

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • gc
    • b89

        This RFE propose that we change "assert" to use variadic macros so that we can write our asserts like:
        assert(referent->is_oop(), "bad referent %p", referent);

        instead of:
        assert(referent->is_oop(), err_msg("bad referent %p", referent));

        The reason why err_msg was introduced is explained in JDK-6888954.

              Assignee:
              David Lindholm (Inactive)
              Reporter:
              Stefan Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: