changeset 50:eac18811b563

Bugfixes.
author shade
date Thu, 15 Dec 2016 22:54:31 +0100
parents d869414b90b4
children 79ac5fe68ddd
files src/main/java/org/openjdk/gcbench/HeapSizeManager.java src/main/java/org/openjdk/gcbench/alloc/uninit/IntArray.java
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/openjdk/gcbench/HeapSizeManager.java	Thu Dec 15 19:57:37 2016 +0100
+++ b/src/main/java/org/openjdk/gcbench/HeapSizeManager.java	Thu Dec 15 22:54:31 2016 +0100
@@ -15,8 +15,8 @@
     public static int MIN_HEAP;
 
     public static void override(int min, int max) {
+        MIN_HEAP = min;
         MAX_HEAP = max;
-        MIN_HEAP = max;
     }
 
     public static void init(int min, PrintWriter pw) {
--- a/src/main/java/org/openjdk/gcbench/alloc/uninit/IntArray.java	Thu Dec 15 19:57:37 2016 +0100
+++ b/src/main/java/org/openjdk/gcbench/alloc/uninit/IntArray.java	Thu Dec 15 22:54:31 2016 +0100
@@ -13,14 +13,12 @@
 public class IntArray {
 
     static final Unsafe U;
-    static final long OFF_REF;
 
     static {
         try {
             Field unsafeField = Unsafe.class.getDeclaredField("theUnsafe");
             unsafeField.setAccessible(true);
             U = (Unsafe) unsafeField.get(null);
-            OFF_REF  = U.objectFieldOffset(IntArray.class.getDeclaredField("ref"));
         } catch (Exception e) {
             throw new AssertionError(e);
         }