Path: blob/master/test/hotspot/jtreg/resourcehogs/compiler/intrinsics/string/TestStringIntrinsics2LargeArray.java
64560 views
/*1* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2016 SAP SE. All rights reserved.3* Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.4* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.5*6* This code is free software; you can redistribute it and/or modify it7* under the terms of the GNU General Public License version 2 only, as8* published by the Free Software Foundation.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 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 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425/*26* @test27* @bug 825479028* @requires vm.bits == "64" & os.maxMemory > 8G29* @modules java.base/jdk.internal.misc30* @library /test/lib /test/hotspot/jtreg31*32* @build compiler.intrinsics.string.TestStringIntrinsics233* @build sun.hotspot.WhiteBox34* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox35*36* @run main/othervm37* -mx8G38* -Xbootclasspath/a:.39* -Xmixed40* -XX:+UnlockDiagnosticVMOptions41* -XX:+WhiteBoxAPI42* -XX:+IgnoreUnrecognizedVMOptions43* -XX:MaxInlineSize=7044* -XX:MinInlineFrequencyRatio=045* resourcehogs.compiler.intrinsics.string.TestStringIntrinsics2LargeArray46*/4748package resourcehogs.compiler.intrinsics.string;4950import java.lang.ref.Reference;5152import compiler.intrinsics.string.TestStringIntrinsics2;5354public final class TestStringIntrinsics2LargeArray {55public static void main(String[] args) throws Exception {56int[] hugeArray = new int[Integer.MAX_VALUE / 2];57TestStringIntrinsics2.main(args);58Reference.reachabilityFence(hugeArray);59}60}616263