equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2018, 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. |
25 * @test |
25 * @test |
26 * @bug 7042126 |
26 * @bug 7042126 |
27 * @summary Verify that we do not leak contents when we clone a HashMap |
27 * @summary Verify that we do not leak contents when we clone a HashMap |
28 * @author david.buck@oracle.com |
28 * @author david.buck@oracle.com |
29 * @run main/othervm HashMapCloneLeak |
29 * @run main/othervm HashMapCloneLeak |
30 * @run main/othervm -XX:+AggressiveOpts HashMapCloneLeak |
30 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+EliminateAutoBox -XX:AutoBoxCacheMax=20000 HashMapCloneLeak |
31 */ |
31 */ |
32 |
32 |
33 import java.util.HashMap; |
33 import java.util.HashMap; |
34 import java.lang.ref.WeakReference; |
34 import java.lang.ref.WeakReference; |
35 |
35 |