hotspot/src/share/vm/gc_implementation/parallelScavenge/gcTaskThread.cpp
changeset 29326 ebaa169c6dc3
parent 27880 afb974a04396
child 29464 02c245ad3ec9
equal deleted inserted replaced
29325:0e86e64c66e5 29326:ebaa169c6dc3
     1 
     1 
     2 /*
     2 /*
     3  * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
     8  * published by the Free Software Foundation.
     8  * published by the Free Software Foundation.
    96 
    96 
    97 void GCTaskThread::run() {
    97 void GCTaskThread::run() {
    98   // Set up the thread for stack overflow support
    98   // Set up the thread for stack overflow support
    99   this->record_stack_base_and_size();
    99   this->record_stack_base_and_size();
   100   this->initialize_thread_local_storage();
   100   this->initialize_thread_local_storage();
       
   101   this->initialize_named_thread();
   101   // Bind yourself to your processor.
   102   // Bind yourself to your processor.
   102   if (processor_id() != GCTaskManager::sentinel_worker()) {
   103   if (processor_id() != GCTaskManager::sentinel_worker()) {
   103     if (TraceGCTaskThread) {
   104     if (TraceGCTaskThread) {
   104       tty->print_cr("GCTaskThread::run: "
   105       tty->print_cr("GCTaskThread::run: "
   105                     "  binding to processor %u", processor_id());
   106                     "  binding to processor %u", processor_id());