equal
deleted
inserted
replaced
128 _workers[worker_id] = worker; |
128 _workers[worker_id] = worker; |
129 } |
129 } |
130 |
130 |
131 public: |
131 public: |
132 AbstractWorkGang(const char* name, uint workers, bool are_GC_task_threads, bool are_ConcurrentGC_threads) : |
132 AbstractWorkGang(const char* name, uint workers, bool are_GC_task_threads, bool are_ConcurrentGC_threads) : |
133 _name(name), |
133 _workers(NULL), |
134 _total_workers(workers), |
134 _total_workers(workers), |
135 _active_workers(UseDynamicNumberOfGCThreads ? 1U : workers), |
135 _active_workers(UseDynamicNumberOfGCThreads ? 1U : workers), |
136 _created_workers(0), |
136 _created_workers(0), |
|
137 _name(name), |
137 _are_GC_task_threads(are_GC_task_threads), |
138 _are_GC_task_threads(are_GC_task_threads), |
138 _are_ConcurrentGC_threads(are_ConcurrentGC_threads) |
139 _are_ConcurrentGC_threads(are_ConcurrentGC_threads) |
139 { } |
140 { } |
140 |
141 |
141 // Initialize workers in the gang. Return true if initialization succeeded. |
142 // Initialize workers in the gang. Return true if initialization succeeded. |