8011934: sun.misc.PerfCounter calls Perf.createLong with incorrect parameters
Reviewed-by: mchung
Contributed-by: Yasumasa Suenaga <yasu@ysfactory.dip.jp>
--- 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();
}