jdk/test/tools/pack200/Pack200Test.java
changeset 12047 320a714614e9
parent 9734 b33a24d77590
child 15652 edc2e7c83709
equal deleted inserted replaced
12046:378aa3362868 12047:320a714614e9
     1 /*
     1 /*
     2  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    44 public class Pack200Test {
    44 public class Pack200Test {
    45 
    45 
    46     private static ArrayList <File> jarList = new ArrayList<File>();
    46     private static ArrayList <File> jarList = new ArrayList<File>();
    47     static final MemoryMXBean mmxbean = ManagementFactory.getMemoryMXBean();
    47     static final MemoryMXBean mmxbean = ManagementFactory.getMemoryMXBean();
    48     static final long m0 = getUsedMemory();
    48     static final long m0 = getUsedMemory();
    49     static final int LEAK_TOLERANCE = 20000; // OS and GC related variations.
    49     static final int LEAK_TOLERANCE = 21000; // OS and GC related variations.
    50 
    50 
    51     /** Creates a new instance of Pack200Test */
    51     /** Creates a new instance of Pack200Test */
    52     private Pack200Test() {}
    52     private Pack200Test() {}
    53 
    53 
    54     static long getUsedMemory() {
    54     static long getUsedMemory() {