< prev index next >

test/java/awt/Graphics2D/MTGraphicsAccessTest/MTGraphicsAccessTest.java

Print this page




  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   @test
  26   @bug 5089429 6982632
  27   @summary Checks that we don't crash if rendering operations and state
  28   changes are performed on a graphics context from different threads.
  29 
  30   @author Dmitri.Trembovetski@sun.com area=Graphics
  31   @run main MTGraphicsAccessTest

  32  */
  33 
  34 import java.awt.*;
  35 import java.awt.image.*;
  36 import java.awt.geom.*;
  37 
  38 public class MTGraphicsAccessTest {
  39 
  40     // in seconds
  41     static final long STANDALONE_RUN_TIME = 20;
  42     static final long JTREG_RUN_TIME = 7;
  43 
  44     static boolean standaloneMode;
  45     static boolean allowExceptions = true;
  46     static long testRunTime;
  47 
  48     volatile boolean done;
  49     volatile int stillRunning;
  50     volatile int numexceptions;
  51 




  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   @test
  26   @bug 5089429 6982632
  27   @summary Checks that we don't crash if rendering operations and state
  28   changes are performed on a graphics context from different threads.
  29 
  30   @author Dmitri.Trembovetski@sun.com area=Graphics
  31   @run main MTGraphicsAccessTest
  32   @key randomness
  33  */
  34 
  35 import java.awt.*;
  36 import java.awt.image.*;
  37 import java.awt.geom.*;
  38 
  39 public class MTGraphicsAccessTest {
  40 
  41     // in seconds
  42     static final long STANDALONE_RUN_TIME = 20;
  43     static final long JTREG_RUN_TIME = 7;
  44 
  45     static boolean standaloneMode;
  46     static boolean allowExceptions = true;
  47     static long testRunTime;
  48 
  49     volatile boolean done;
  50     volatile int stillRunning;
  51     volatile int numexceptions;
  52 


< prev index next >