equal
deleted
inserted
replaced
112 // them in this method. If there are no tasks to execute, |
112 // them in this method. If there are no tasks to execute, |
113 // the GC workers wait in the GCTaskManager's get_task() |
113 // the GC workers wait in the GCTaskManager's get_task() |
114 // for tasks to be enqueued for execution. |
114 // for tasks to be enqueued for execution. |
115 |
115 |
116 void GCTaskThread::run() { |
116 void GCTaskThread::run() { |
117 // Set up the thread for stack overflow support |
|
118 this->record_stack_base_and_size(); |
|
119 this->initialize_named_thread(); |
117 this->initialize_named_thread(); |
120 // Bind yourself to your processor. |
118 // Bind yourself to your processor. |
121 if (processor_id() != GCTaskManager::sentinel_worker()) { |
119 if (processor_id() != GCTaskManager::sentinel_worker()) { |
122 log_trace(gc, task, thread)("GCTaskThread::run: binding to processor %u", processor_id()); |
120 log_trace(gc, task, thread)("GCTaskThread::run: binding to processor %u", processor_id()); |
123 if (!os::bind_to_processor(processor_id())) { |
121 if (!os::bind_to_processor(processor_id())) { |