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

Support dealing with standard assert macro

XMLWordPrintable

    • b05

        There are some places where we must deal with the conflict between HotSpot's assert macro and the standard assert macro. This can happen when including 3rd party headers (including standard library or os headers) in HotSpot code.

        The general approach to dealing with this is to ensure the HotSpot macro is not defined when including potentially problematic 3rd party headers, and reinstate the HotSpot macro after those includes.

        It would be helpful to have a utility for performing this dance, rather than recreating it multiple times.

        We should also arrange for -DNDEBUG to be defined in release builds to suppress the expansion of the standard assert macro.

              kbarrett Kim Barrett
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: