< prev index next >

test/compiler/escapeAnalysis/TestAllocatedEscapesPtrComparison.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8043354
  27  * @summary  bcEscapeAnalyzer allocated_escapes not conservative enough
  28  * @run main/othervm -XX:CompileOnly=.visitAndPop TestAllocatedEscapesPtrComparison



  29  * @author Chuck Rasbold rasbold@google.com
  30  */
  31 


  32 /*
  33  * Test always passes with -XX:-OptmimizePtrCompare
  34  */
  35 
  36 import java.util.ArrayList;
  37 import java.util.List;
  38 
  39 public class TestAllocatedEscapesPtrComparison {
  40 
  41   static TestAllocatedEscapesPtrComparison dummy;
  42 
  43   class Marker {
  44   }
  45 
  46   List<Marker> markerList = new ArrayList<>();
  47 
  48   // Suppress compilation of this method, it must be processed
  49   // by the bytecode escape analyzer.
  50 
  51   // Make a new marker and put it on the List




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8043354
  27  * @summary bcEscapeAnalyzer allocated_escapes not conservative enough
  28  *
  29  * @run main/othervm
  30  *      -XX:CompileCommand=compileonly,compiler.escapeAnalysis.TestAllocatedEscapesPtrComparison::visitAndPop
  31  *      compiler.escapeAnalysis.TestAllocatedEscapesPtrComparison
  32  * @author Chuck Rasbold rasbold@google.com
  33  */
  34 
  35 package compiler.escapeAnalysis;
  36 
  37 /*
  38  * Test always passes with -XX:-OptmimizePtrCompare
  39  */
  40 
  41 import java.util.ArrayList;
  42 import java.util.List;
  43 
  44 public class TestAllocatedEscapesPtrComparison {
  45 
  46   static TestAllocatedEscapesPtrComparison dummy;
  47 
  48   class Marker {
  49   }
  50 
  51   List<Marker> markerList = new ArrayList<>();
  52 
  53   // Suppress compilation of this method, it must be processed
  54   // by the bytecode escape analyzer.
  55 
  56   // Make a new marker and put it on the List


< prev index next >