print_concurrent_locks should be guarded with INCLUDE_SERVICES

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • None
    • svc
    • b66

        This code in thread.cpp:
        #if INCLUDE_ALL_GCS
          // Dump concurrent locks
          ConcurrentLocksDump concurrent_locks;
          if (print_concurrent_locks) {
            concurrent_locks.dump_at_safepoint();
          }
        #endif // INCLUDE_ALL_GCS

        uses HeapInspection code, which is excluded if INCLUDE_SERVICES is false.

        It should be guarded by INCLUDE_SERVICES and not INCLUDE_ALL_GCS

              Assignee:
              Stefan Karlsson
              Reporter:
              Stefan Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: