changeset 8334:3b81fac25d26

8011934: sun.misc.PerfCounter calls Perf.createLong with incorrect parameters Reviewed-by: mchung Contributed-by: Yasumasa Suenaga <yasu@ysfactory.dip.jp>
author mchung
date Thu, 18 Apr 2013 13:02:58 -0700
parents 32c3a580812b
children 3e4a0fddeb00
files src/share/classes/sun/misc/PerfCounter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/misc/PerfCounter.java	Thu Apr 18 11:14:39 2013 -0700
+++ b/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();
     }