comparison test/runtime/RedefineObject/Agent.java @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents 4f0acb75c921
children 89152779163c
comparison
equal deleted inserted replaced
14908:8db6e76cb658 14909:4ca6dc0799b6
1 /* 1 /*
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2013, 2013, 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 100 GC's, it's good. 68 // If it survives 1000 GC's, it's good.
69 for (int i = 0; i < 100 ; i++) { 69 for (int i = 0; i < 1000 ; 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