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 6890943
28 * @summary JVM mysteriously gives wrong result on 64-bit 1.6 VMs in hotspot mode.
29 *
30 * @run main/othervm/timeout=240 Test6890943
31 */
32
33 import java.io.*;
34 import java.nio.file.Path;
35 import java.nio.file.Paths;
36 import java.util.HashMap;
37 import java.util.Map;
38 import java.util.Scanner;
39
40 public class Test6890943 {
41 public static final boolean AIR = true, ROCK = false;
42 private static final Path PATH = Paths.get(System.getProperty("test.src", "."));
43 private static final Path INPUT_FILE = PATH.resolve("input6890943.txt");
44 private static final Path GOLDEN_FILE = PATH.resolve("output6890943.txt");
45
46 public static void main(String[] args) {
47 new Test6890943().go();
48 }
49
50 int r, c, f, t;
51 boolean[][] grid;
52
53 public void go() {
|
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 6890943
28 * @summary JVM mysteriously gives wrong result on 64-bit 1.6 VMs in hotspot mode.
29 *
30 * @run main/othervm/timeout=240 compiler.c2.cr6890943.Test6890943
31 */
32
33 package compiler.c2.cr6890943;
34
35 import java.io.FileInputStream;
36 import java.io.FileNotFoundException;
37 import java.nio.file.Path;
38 import java.nio.file.Paths;
39 import java.util.HashMap;
40 import java.util.Map;
41 import java.util.Scanner;
42
43 public class Test6890943 {
44 public static final boolean AIR = true, ROCK = false;
45 private static final Path PATH = Paths.get(System.getProperty("test.src", "."));
46 private static final Path INPUT_FILE = PATH.resolve("input6890943.txt");
47 private static final Path GOLDEN_FILE = PATH.resolve("output6890943.txt");
48
49 public static void main(String[] args) {
50 new Test6890943().go();
51 }
52
53 int r, c, f, t;
54 boolean[][] grid;
55
56 public void go() {
|