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

some files use #ifdef DEBUG

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • hotspot
    • None
    • gc
    • generic
    • generic

      There are a number of occurrences of '#ifdef DEBUG' in the source, mostly in GC files. They give a false sense of security since DEBUG is not defined in fastdebug builds, so the code is eliminated, and most testing uses fastdebug builds.

      src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp:6659: #ifdef DEBUG
      src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp:6816: #ifdef DEBUG
      src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp:6843: #ifdef DEBUG
      src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp:8074: #ifdef DEBUG
      src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp:1069:#ifdef DEBUG
      src/share/vm/gc_implementation/g1/heapRegion.cpp:453:#ifdef DEBUG
      src/share/vm/gc_implementation/g1/heapRegion.hpp:797:#ifdef DEBUG
      src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.cpp:521:#ifdef DEBUG
      src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.cpp:615:#ifdef DEBUG
      src/share/vm/memory/dump.cpp:274:#ifdef DEBUG
      src/share/vm/memory/dump.cpp:1090:#ifdef DEBUG
      src/share/vm/runtime/vmThread.cpp:106:#ifdef DEBUG

            jcoomes John Coomes (Inactive)
            jcoomes John Coomes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: