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

Better argument formatting for assert() and friends

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b89

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: