< prev index next >

test/compiler/c2/cr6589834/InlinedArrayCloneTestCase.java

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


   4  *
   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
   7  * published by the Free Software Foundation.
   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 public class InlinedArrayCloneTestCase implements Runnable {
  25     private Test_ia32 executionController;
  26 
  27     public InlinedArrayCloneTestCase(Test_ia32 executionController) {
  28         this.executionController = executionController;
  29     }
  30 
  31     /*
  32      * Please leave following two methods (invokeArrayClone and verifyArguments)
  33      * static.
  34      *
  35      * It does not really matter if these methods are static or instance,
  36      * original issue could be reproduced in both cases, but if these methods
  37      * are static then it is much easier to understand that reproduced issue
  38      * is actually interpreter's stack corruption.
  39      *
  40      * If these methods are non-static, then interpreter's stack will contain
  41      * invalid 'this' pointer required for instance's method call and
  42      * verifyArguments' call may throw NullPointerException. There was another
  43      * issue w/ NPE after deoptimization addressed by JDK-6833129, so NPE looks




   4  *
   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
   7  * published by the Free Software Foundation.
   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 package compiler.c2.cr6589834;
  25 
  26 public class InlinedArrayCloneTestCase implements Runnable {
  27     private Test_ia32 executionController;
  28 
  29     public InlinedArrayCloneTestCase(Test_ia32 executionController) {
  30         this.executionController = executionController;
  31     }
  32 
  33     /*
  34      * Please leave following two methods (invokeArrayClone and verifyArguments)
  35      * static.
  36      *
  37      * It does not really matter if these methods are static or instance,
  38      * original issue could be reproduced in both cases, but if these methods
  39      * are static then it is much easier to understand that reproduced issue
  40      * is actually interpreter's stack corruption.
  41      *
  42      * If these methods are non-static, then interpreter's stack will contain
  43      * invalid 'this' pointer required for instance's method call and
  44      * verifyArguments' call may throw NullPointerException. There was another
  45      * issue w/ NPE after deoptimization addressed by JDK-6833129, so NPE looks


< prev index next >