jdk/test/java/util/logging/LoggerResourceBundleRace.java
changeset 14683 38921a46c62d
parent 10046 f80878957a13
child 14856 92a1bcf46888
equal deleted inserted replaced
14682:47f207b9f92f 14683:38921a46c62d
     1 /*
     1 /*
     2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2012 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.
    28  * @author  Daniel D. Daugherty
    28  * @author  Daniel D. Daugherty
    29  * @build RacingThreadsTest LoggerResourceBundleRace
    29  * @build RacingThreadsTest LoggerResourceBundleRace
    30  * @run main LoggerResourceBundleRace
    30  * @run main LoggerResourceBundleRace
    31  */
    31  */
    32 
    32 
       
    33 import java.util.ListResourceBundle;
       
    34 import java.util.MissingResourceException;
    33 import java.util.concurrent.atomic.AtomicInteger;
    35 import java.util.concurrent.atomic.AtomicInteger;
    34 import java.util.ListResourceBundle;
       
    35 import java.util.logging.Logger;
    36 import java.util.logging.Logger;
    36 import java.util.MissingResourceException;
       
    37 import java.util.ResourceBundle;
       
    38 
    37 
    39 
    38 
    40 public class LoggerResourceBundleRace extends RacingThreadsTest {
    39 public class LoggerResourceBundleRace extends RacingThreadsTest {
    41     private final static int N_LOOPS   = 500000;   // # of race loops
    40     private final static int N_LOOPS   = 500000;   // # of race loops
    42     private final static int N_SECS    = 15;       // # of secs to run test
    41     private final static int N_SECS    = 15;       // # of secs to run test