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

Remove historical debug_only macro in favor of DEBUG_ONLY

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • hotspot
    • b21

      I notice in macros.hpp:

      #ifdef ASSERT
      #define DEBUG_ONLY(code) code
      #define NOT_DEBUG(code)
      #define NOT_DEBUG_RETURN /*next token must be ;*/
      // Historical.
      #define debug_only(code) code
      #else // ASSERT

      We can cleanup "debug_only" and rewrite all uses to "DEBUG_ONLY".

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: