equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2014, 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. |
63 } |
63 } |
64 |
64 |
65 public static void main(String[] args) { |
65 public static void main(String[] args) { |
66 byte[] ba = new byte[0]; |
66 byte[] ba = new byte[0]; |
67 |
67 |
68 // If it survives 1000 GC's, it's good. |
68 // If it survives 100 GC's, it's good. |
69 for (int i = 0; i < 1000 ; i++) { |
69 for (int i = 0; i < 100 ; i++) { |
70 System.gc(); |
70 System.gc(); |
71 ba.clone(); |
71 ba.clone(); |
72 } |
72 } |
73 try { |
73 try { |
74 // Use java/lang/reflect/Method.invoke to call |
74 // Use java/lang/reflect/Method.invoke to call |