equal
deleted
inserted
replaced
1 |
|
2 /* |
1 /* |
3 * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
4 * |
6 * 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 |
94 // for tasks to be enqueued for execution. |
93 // for tasks to be enqueued for execution. |
95 |
94 |
96 void GCTaskThread::run() { |
95 void GCTaskThread::run() { |
97 // Set up the thread for stack overflow support |
96 // Set up the thread for stack overflow support |
98 this->record_stack_base_and_size(); |
97 this->record_stack_base_and_size(); |
99 this->initialize_thread_local_storage(); |
|
100 this->initialize_named_thread(); |
98 this->initialize_named_thread(); |
101 // Bind yourself to your processor. |
99 // Bind yourself to your processor. |
102 if (processor_id() != GCTaskManager::sentinel_worker()) { |
100 if (processor_id() != GCTaskManager::sentinel_worker()) { |
103 if (TraceGCTaskThread) { |
101 if (TraceGCTaskThread) { |
104 tty->print_cr("GCTaskThread::run: " |
102 tty->print_cr("GCTaskThread::run: " |