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

Update PerfDisableSharedMem with FLAG_SET_ERGO in PerfMemory::create_memory_region

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 11, 18
    • hotspot
    • b11
    • generic
    • generic

      In our production environment, jps can not report running java process in rare cases. We can not tell if create_shared_memory failed at startup or /tmp/hsperfdata_user/pid is accidentally deleted.

      PerfDisableSharedMem is set true directly in PerfMemory::create_memory_region, it's better updated with FLAG_SET_ERGO, so jcmd can check vm.flags and tells if create_shared_memory failed at startup time.

            hshi Hui Shi
            hshi Hui Shi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: