< prev index next >

test/compiler/intrinsics/string/TestStringIntrinsics2.java

Print this page




  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 /*
  26  * @test
  27  * @bug 8145336
  28  * @summary PPC64: fix string intrinsics after CompactStrings change
  29  * @library /testlibrary /test/lib
  30  * @build sun.hotspot.WhiteBox
  31  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  32  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  33  *
  34  * @run main/othervm
  35  *        -Xbootclasspath/a:.

  36  *        -XX:+UnlockDiagnosticVMOptions
  37  *        -XX:+WhiteBoxAPI
  38  *        -XX:MaxInlineSize=100
  39  *        -XX:MinInliningThreshold=0
  40  *        TestStringIntrinsics2
  41  */
  42 
  43 import java.lang.annotation.ElementType;
  44 import java.lang.annotation.RetentionPolicy;
  45 import java.lang.annotation.Retention;
  46 import java.lang.annotation.Target;
  47 import java.lang.reflect.Method;
  48 import java.util.Arrays;
  49 import java.util.function.Consumer;
  50 import java.util.function.Function;
  51 
  52 import static jdk.test.lib.Asserts.*;
  53 import sun.hotspot.WhiteBox;
  54 
  55 public class TestStringIntrinsics2 {
  56     // ------------------------------------------------------------------------
  57     //
  58     // We test the following cases:




  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 /*
  26  * @test
  27  * @bug 8145336
  28  * @summary PPC64: fix string intrinsics after CompactStrings change
  29  * @library /testlibrary /test/lib
  30  * @build sun.hotspot.WhiteBox
  31  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  32  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  33  *
  34  * @run main/othervm
  35  *        -Xbootclasspath/a:.
  36  *        -Xmixed
  37  *        -XX:+UnlockDiagnosticVMOptions
  38  *        -XX:+WhiteBoxAPI
  39  *        -XX:MaxInlineSize=70
  40  *        -XX:MinInliningThreshold=0
  41  *        TestStringIntrinsics2
  42  */
  43 
  44 import java.lang.annotation.ElementType;
  45 import java.lang.annotation.RetentionPolicy;
  46 import java.lang.annotation.Retention;
  47 import java.lang.annotation.Target;
  48 import java.lang.reflect.Method;
  49 import java.util.Arrays;
  50 import java.util.function.Consumer;
  51 import java.util.function.Function;
  52 
  53 import static jdk.test.lib.Asserts.*;
  54 import sun.hotspot.WhiteBox;
  55 
  56 public class TestStringIntrinsics2 {
  57     // ------------------------------------------------------------------------
  58     //
  59     // We test the following cases:


< prev index next >