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

sun.misc.PerfCounter calls Perf.createLong with incorrect parameters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 7
    • core-libs
    • b89

    Description

      sun.misc.PerfCounter constructor calls Perf.createLong but it passes unit and varability in the 2nd and 3rd parameters which is incorrect. The signature of Perf.createLong is:
          public native ByteBuffer createLong(String name, int variability, int units, long value);

      ByteBuffer bb = perf.createLong(name, type, U_None, 0L);

      Attachments

        Issue Links

          Activity

            People

              mchung Mandy Chung
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: