changeset 17158:55eecadc4f82

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 a7b5c8d0f882
children bb566a21b661
files jdk/src/share/classes/sun/misc/PerfCounter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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();
     }