Mercurial > hg > truffle
comparison src/share/vm/utilities/yieldingWorkgroup.cpp @ 342:37f87013dfd8
6711316: Open source the Garbage-First garbage collector
Summary: First mercurial integration of the code for the Garbage-First garbage collector.
Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
author | ysr |
---|---|
date | Thu, 05 Jun 2008 15:57:56 -0700 |
parents | a61af66fc99e |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
189:0b27f3512f9e | 342:37f87013dfd8 |
---|---|
29 | 29 |
30 class GangWorker; | 30 class GangWorker; |
31 class WorkData; | 31 class WorkData; |
32 | 32 |
33 YieldingFlexibleWorkGang::YieldingFlexibleWorkGang( | 33 YieldingFlexibleWorkGang::YieldingFlexibleWorkGang( |
34 const char* name, int workers, bool are_GC_threads) : | 34 const char* name, int workers, bool are_GC_task_threads) : |
35 AbstractWorkGang(name, are_GC_threads) { | 35 AbstractWorkGang(name, are_GC_task_threads, false) { |
36 // Save arguments. | 36 // Save arguments. |
37 _total_workers = workers; | 37 _total_workers = workers; |
38 assert(_total_workers > 0, "Must have more than 1 worker"); | 38 assert(_total_workers > 0, "Must have more than 1 worker"); |
39 | 39 |
40 _yielded_workers = 0; | 40 _yielded_workers = 0; |