Mercurial > hg > truffle
comparison test/compiler/6852078/Test6852078.java @ 8118:a00ed9736260
8007776: Test6852078.java timeouts
Summary: if more than 100 seconds and more than 100 iterations have both passed, then exit is allowed.
Reviewed-by: kvn
author | drchase |
---|---|
date | Tue, 26 Feb 2013 15:38:24 -0800 |
parents | c18cbe5936b8 |
children |
comparison
equal
deleted
inserted
replaced
8117:706c919d3b56 | 8118:a00ed9736260 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
25 /** | 25 /** |
26 * @test | 26 * @test |
27 * @bug 6852078 | 27 * @bug 6852078 |
28 * @summary Disable SuperWord optimization for unsafe read/write | 28 * @summary Disable SuperWord optimization for unsafe read/write |
29 * | 29 * |
30 * @run main/othervm Test6852078 | 30 * @run main Test6852078 |
31 */ | 31 */ |
32 | 32 |
33 import java.util.*; | 33 import java.util.*; |
34 import java.nio.ByteBuffer; | 34 import java.nio.ByteBuffer; |
35 import com.sun.corba.se.impl.encoding.ByteBufferWithInfo; | 35 import com.sun.corba.se.impl.encoding.ByteBufferWithInfo; |
48 for (int i = 0; i < capacity; i++) | 48 for (int i = 0; i < capacity; i++) |
49 tmpBuf[i] = bbwi.byteBuffer.get(i); | 49 tmpBuf[i] = bbwi.byteBuffer.get(i); |
50 } | 50 } |
51 | 51 |
52 public static void main(String [] args) { | 52 public static void main(String [] args) { |
53 long start = System.currentTimeMillis(); | |
53 for (int i=0; i<2000; i++) { | 54 for (int i=0; i<2000; i++) { |
55 // To protect slow systems from test-too-long timeouts | |
56 if ((i > 100) && ((System.currentTimeMillis() - start) > 100000)) | |
57 break; | |
54 Test6852078 t = new Test6852078(args); | 58 Test6852078 t = new Test6852078(args); |
55 } | 59 } |
56 } | 60 } |
57 } | 61 } |