test/compiler/7100757/Test7100757.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/test/compiler/7100757/Test7100757.java Tue Oct 28 19:58:51 2014
--- new/test/compiler/7100757/Test7100757.java Tue Oct 28 19:58:51 2014
*** 1,7 ****
--- 1,7 ----
/*
! * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 24,47 ****
--- 24,49 ----
/**
* @test
* @bug 7100757
* @summary The BitSet.nextSetBit() produces incorrect result in 32bit VM on Sparc
*
+ * @library /testlibrary
* @run main/timeout=300 Test7100757
*/
! import java.util.*;
! import com.oracle.java.testlibrary.Utils;
+ import java.util.BitSet;
+ import java.util.Random;
public class Test7100757 {
public static final int NBITS = 256;
public static void main(String[] args) {
BitSet bs = new BitSet(NBITS);
! Random rnd = new Random();
! Random rnd = Utils.getRandomInstance();
long[] ra = new long[(NBITS+63)/64];
for(int l=0; l < 5000000; l++) {
for(int r = 0; r < ra.length; r++) {
test/compiler/7100757/Test7100757.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File