jdk/test/java/lang/ref/SoftReference/Pin.java
changeset 32649 2ee9017c7597
parent 31466 3c041fe4cc7d
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
    32 
    32 
    33 import java.lang.ref.SoftReference;
    33 import java.lang.ref.SoftReference;
    34 
    34 
    35 public class Pin {
    35 public class Pin {
    36 
    36 
    37     final static int NUM_BLOCKS = 128;
    37     static final int NUM_BLOCKS = 128;
    38     final static int BLOCK_SIZE = 32768;
    38     static final int BLOCK_SIZE = 32768;
    39 
    39 
    40     public static void main(String[] args) throws Exception {
    40     public static void main(String[] args) throws Exception {
    41 
    41 
    42         SoftReference[] blocks = new SoftReference[NUM_BLOCKS];
    42         SoftReference[] blocks = new SoftReference[NUM_BLOCKS];
    43 
    43