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

Missing -DNDEBUG on Linux and Windows native code compiles

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b66
    • CPU:
      generic
    • OS:
      generic

      Description

      The optimized or product builds on Linux and Windows are not defining the macro NDEBUG, which is what triggers the assert() macro to be nothing. On Solaris product builds NDEBUG is defined. The assert() checks seem to only make sense for the debug or fastdebug builds.

        Activity

        Hide
        ohair Kelly Ohair (Inactive) added a comment -
        BT2:EVALUATION

        Just add -DNDEBUG to all product builds
        Show
        ohair Kelly Ohair (Inactive) added a comment - BT2:EVALUATION Just add -DNDEBUG to all product builds
        Show
        jprtbugupd JPRT Bug Updates (Inactive) added a comment - BT2:EVALUATION http://hg.openjdk.java.net/jdk7/tl/jdk/rev/d133d4052378

          People

          • Assignee:
            ohair Kelly Ohair (Inactive)
            Reporter:
            ohair Kelly Ohair (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Imported:
              Indexed: