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

CodeCache::print_internals should not be called in PRODUCT code

XMLWordPrintable

    • b15

      It is called from print_statistics() in java.cpp:

       if (PrintCodeCache2) {
          MutexLocker mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
          CodeCache::print_internals();
        }

      This is incorrect. However, with optimization turned on, PrintCodeCache2 resolves to a constant "false" and the compiler optimizes away the entire block.

            djelinski Daniel Jelinski
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: