< prev index next >

src/hotspot/share/gc/g1/g1ConcurrentRefine.cpp

Print this page
rev 57138 : [mq]: 8234796-v3


  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 #include "precompiled.hpp"
  26 #include "gc/g1/g1BarrierSet.hpp"
  27 #include "gc/g1/g1ConcurrentRefine.hpp"
  28 #include "gc/g1/g1ConcurrentRefineThread.hpp"
  29 #include "gc/g1/g1DirtyCardQueue.hpp"
  30 #include "logging/log.hpp"
  31 #include "memory/allocation.inline.hpp"

  32 #include "runtime/java.hpp"
  33 #include "runtime/thread.hpp"
  34 #include "utilities/debug.hpp"
  35 #include "utilities/globalDefinitions.hpp"
  36 #include "utilities/pair.hpp"
  37 #include <math.h>
  38 
  39 G1ConcurrentRefineThread* G1ConcurrentRefineThreadControl::create_refinement_thread(uint worker_id, bool initializing) {
  40   G1ConcurrentRefineThread* result = NULL;
  41   if (initializing || !InjectGCWorkerCreationFailure) {
  42     result = new G1ConcurrentRefineThread(_cr, worker_id);
  43   }
  44   if (result == NULL || result->osthread() == NULL) {
  45     log_warning(gc)("Failed to create refinement thread %u, no more %s",
  46                     worker_id,
  47                     result == NULL ? "memory" : "OS threads");
  48   }
  49   return result;
  50 }
  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 #include "precompiled.hpp"
  26 #include "gc/g1/g1BarrierSet.hpp"
  27 #include "gc/g1/g1ConcurrentRefine.hpp"
  28 #include "gc/g1/g1ConcurrentRefineThread.hpp"
  29 #include "gc/g1/g1DirtyCardQueue.hpp"
  30 #include "logging/log.hpp"
  31 #include "memory/allocation.inline.hpp"
  32 #include "memory/iterator.hpp"
  33 #include "runtime/java.hpp"
  34 #include "runtime/thread.hpp"
  35 #include "utilities/debug.hpp"
  36 #include "utilities/globalDefinitions.hpp"
  37 #include "utilities/pair.hpp"
  38 #include <math.h>
  39 
  40 G1ConcurrentRefineThread* G1ConcurrentRefineThreadControl::create_refinement_thread(uint worker_id, bool initializing) {
  41   G1ConcurrentRefineThread* result = NULL;
  42   if (initializing || !InjectGCWorkerCreationFailure) {
  43     result = new G1ConcurrentRefineThread(_cr, worker_id);
  44   }
  45   if (result == NULL || result->osthread() == NULL) {
  46     log_warning(gc)("Failed to create refinement thread %u, no more %s",
  47                     worker_id,
  48                     result == NULL ? "memory" : "OS threads");
  49   }
  50   return result;
  51 }
  52 


< prev index next >