equal
deleted
inserted
replaced
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() { |