< prev index next >

test/hotspot/jtreg/runtime/valhalla/valuetypes/Ifacmp.java

Print this page




  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 package runtime.valhalla.valuetypes;
  24 
  25 import java.lang.ref.*;
  26 
  27 
  28 /*
  29  * @test Ifacmp
  30  * @requires vm.gc == null
  31  * @summary if_acmpeq/ne bytecode test
  32  * @compile Ifacmp.java
  33  * @run main/othervm -Xint -Xms16m -Xmx16m -XX:+UseSerialGC
  34  *                   -XX:+UnlockExperimentalVMOptions -XX:ACmpOnValues=2
  35  *                   runtime.valhalla.valuetypes.Ifacmp alwaysFalse
  36  * @run main/othervm -Xint -Xms16m -Xmx16m -XX:+UseSerialGC
  37  *                   -XX:+UnlockExperimentalVMOptions -XX:ACmpOnValues=3
  38  *                   runtime.valhalla.valuetypes.Ifacmp
  39  * @run main/othervm -Xcomp -Xms16m -Xmx16m -XX:+UseSerialGC
  40  *                   -XX:+UnlockExperimentalVMOptions -XX:ACmpOnValues=3
  41  *                   runtime.valhalla.valuetypes.Ifacmp
  42  */
  43 public class Ifacmp {
  44 
  45     static inline class MyValue {
  46         int value;
  47         public MyValue(int v) { this.value = v; }
  48     };
  49     static inline class MyValue2 {
  50         int value;
  51         public MyValue2(int v) { this.value = v; }
  52     };
  53 
  54     boolean acmpModeInlineAlwaysFalse = false;
  55 
  56     Object aNull = null;
  57     Object bNull = null;
  58 
  59     Object aObject = new String("Hi");
  60     Object bObject = new String("Hi");




  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 package runtime.valhalla.valuetypes;
  24 
  25 import java.lang.ref.*;
  26 
  27 
  28 /*
  29  * @test Ifacmp
  30  * @requires vm.gc == null
  31  * @summary if_acmpeq/ne bytecode test
  32  * @compile Ifacmp.java
  33  * @run main/othervm -Xint -Xms16m -Xmx16m -XX:+UseSerialGC




  34  *                   runtime.valhalla.valuetypes.Ifacmp
  35  * @run main/othervm -Xcomp -Xms16m -Xmx16m -XX:+UseSerialGC

  36  *                   runtime.valhalla.valuetypes.Ifacmp
  37  */
  38 public class Ifacmp {
  39 
  40     static inline class MyValue {
  41         int value;
  42         public MyValue(int v) { this.value = v; }
  43     };
  44     static inline class MyValue2 {
  45         int value;
  46         public MyValue2(int v) { this.value = v; }
  47     };
  48 
  49     boolean acmpModeInlineAlwaysFalse = false;
  50 
  51     Object aNull = null;
  52     Object bNull = null;
  53 
  54     Object aObject = new String("Hi");
  55     Object bObject = new String("Hi");


< prev index next >