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 /**
26 * @test
27 * @bug 6982370
28 * @summary SIGBUS in jbyte_fill
29 *
30 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+OptimizeFill -Xbatch Test6982370
31 */
32
33 import java.util.Arrays;
34
35 /**
36 * Exercise the fill routine for various short alignments and sizes
37 */
38
39 public class Test6982370 {
40 public static void main(String[] args) {
41 test_byte();
42 test_char();
43 test_short();
44 test_int();
45 test_float();
46 }
47
48 public static void test_int() {
49 int[] a = new int[16];
50 for (int i = 0; i < 200000; i++) {
51 int start = i & 7;
52 int end = start + ((i >> 4) & 7);
|
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 /**
26 * @test
27 * @bug 6982370
28 * @summary SIGBUS in jbyte_fill
29 *
30 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+OptimizeFill -Xbatch
31 * compiler.intrinsics.Test6982370
32 */
33
34 package compiler.intrinsics;
35
36 import java.util.Arrays;
37
38 /**
39 * Exercise the fill routine for various short alignments and sizes
40 */
41
42 public class Test6982370 {
43 public static void main(String[] args) {
44 test_byte();
45 test_char();
46 test_short();
47 test_int();
48 test_float();
49 }
50
51 public static void test_int() {
52 int[] a = new int[16];
53 for (int i = 0; i < 200000; i++) {
54 int start = i & 7;
55 int end = start + ((i >> 4) & 7);
|