Revisit Windows PDH buffer size calculation for OperatingSystemMXBean

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: