jdk/test/com/sun/jdi/DeoptimizeWalk.sh
changeset 23046 0b0407b1e2a5
parent 5506 202f599c92aa
child 31907 cafb1bf49cfb
equal deleted inserted replaced
23045:949bd9e35147 23046:0b0407b1e2a5
     1 #!/bin/sh
     1 #!/bin/sh
     2 
     2 
     3 #
     3 #
     4 # Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
     4 # Copyright (c) 2002, 2014 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.
    64       int v3 = 89;
    64       int v3 = 89;
    65       System.out.println("a3");  //@ 1 breakpoint
    65       System.out.println("a3");  //@ 1 breakpoint
    66       a4(22);                  // it passes if this line is commented out
    66       a4(22);                  // it passes if this line is commented out
    67       System.out.println("jj");
    67       System.out.println("jj");
    68     }
    68     }
    69     
    69 
    70     public void a4(int pp) {
    70     public void a4(int pp) {
    71       int v4 = 90;
    71       int v4 = 90;
    72       System.out.println("a4: @1 breakpoint here");
    72       System.out.println("a4: @1 breakpoint here");
    73     }
    73     }
    74 }
    74 }
    82     runToBkpt @1
    82     runToBkpt @1
    83     cmd where
    83     cmd where
    84     #cmd next
    84     #cmd next
    85     cmd step
    85     cmd step
    86     cmd where
    86     cmd where
    87     cmd quit
       
    88     jdbFailIfNotPresent "shtest\.main" 3
       
    89 }
    87 }
    90 
    88 
    91 
    89 
    92 mysetup()
    90 mysetup()
    93 {
    91 {
   106 # You could replace this next line with the contents
   104 # You could replace this next line with the contents
   107 # of ShellScaffold.sh and this script will run just the same.
   105 # of ShellScaffold.sh and this script will run just the same.
   108 mysetup
   106 mysetup
   109 
   107 
   110 runit
   108 runit
       
   109 jdbFailIfNotPresent "shtest\.main" 3
   111 debuggeeFailIfPresent "Internal exception:"
   110 debuggeeFailIfPresent "Internal exception:"
   112 pass
   111 pass