jdk/test/com/sun/jdi/BreakpointWithFullGC.sh
changeset 21666 918ef08589ee
parent 5506 202f599c92aa
child 21827 4c92731f1b45
equal deleted inserted replaced
21665:18a9cae3b4d5 21666:918ef08589ee
     1 #!/bin/sh
     1 #!/bin/sh
     2 
     2 
     3 #
     3 #
     4 # Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
     4 # Copyright (c) 2009, 2013 Oracle and/or its affiliates. All rights reserved.
     5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     6 #
     6 #
     7 # This code is free software; you can redistribute it and/or modify it
     7 # This code is free software; you can redistribute it and/or modify it
     8 # under the terms of the GNU General Public License version 2 only, as
     8 # under the terms of the GNU General Public License version 2 only, as
     9 # published by the Free Software Foundation.
     9 # published by the Free Software Foundation.
    60     public static void main(String[] args) {
    60     public static void main(String[] args) {
    61         for (int i = 0; i < 10; i++) {
    61         for (int i = 0; i < 10; i++) {
    62             System.out.println("top of loop");     // @1 breakpoint
    62             System.out.println("top of loop");     // @1 breakpoint
    63             init(1000000);
    63             init(1000000);
    64             objList.clear();
    64             objList.clear();
       
    65             System.gc();
    65             System.out.println("bottom of loop");  // @1 breakpoint
    66             System.out.println("bottom of loop");  // @1 breakpoint
    66         }
    67         }
    67         System.out.println("end of test");         // @1 breakpoint
    68         System.out.println("end of test");         // @1 breakpoint
    68     }
    69     }
    69 }
    70 }