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

Revisit Windows PDH buffer size calculation for OperatingSystemMXBean

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 25
    • core-svc
    • None

      The native Windows code for the implementation of OperatingSystemMXBean, creates a buffer for the name of Windows performance counter (method makeFullCounterPath in OperatingSystemImpl.c).

      When JDK-8336289 changed _snprintf to snprintf, some Counter names were truncated, therefore not found, and OS CPU monitoring failed.

      The artithmetic for the buffer size needs revisiting, and snprintf can be reinstated.

            kevinw Kevin Walls
            kevinw Kevin Walls
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: