8011934: sun.misc.PerfCounter calls Perf.createLong with incorrect parameters
authormchung
Thu, 18 Apr 2013 13:02:58 -0700
changeset 17158 55eecadc4f82
parent 17157 a7b5c8d0f882
child 17159 bb566a21b661
8011934: sun.misc.PerfCounter calls Perf.createLong with incorrect parameters Reviewed-by: mchung Contributed-by: Yasumasa Suenaga <yasu@ysfactory.dip.jp>
jdk/src/share/classes/sun/misc/PerfCounter.java
--- a/jdk/src/share/classes/sun/misc/PerfCounter.java	Thu Apr 18 11:14:39 2013 -0700
+++ b/jdk/src/share/classes/sun/misc/PerfCounter.java	Thu Apr 18 13:02:58 2013 -0700
@@ -62,7 +62,7 @@
 
     private PerfCounter(String name, int type) {
         this.name = name;
-        ByteBuffer bb = perf.createLong(name, U_None, type, 0L);
+        ByteBuffer bb = perf.createLong(name, type, U_None, 0L);
         bb.order(ByteOrder.nativeOrder());
         this.lb = bb.asLongBuffer();
     }