| 344 | } |
| 345 | |
| 346 | static int ProcessUnits(UnitsPQ& units, int limit) { |
| 347 | limit = std::max(limit, 0); |
| 348 | int count = 0; |
| 349 | while (units.size() > (size_t)limit) { |
| 350 | doMarkForSlaughter(units.top()); |
| 351 | units.pop(); |
| 352 | ++count; |
| 353 | } |
| 354 | return count; |
| 355 | } |
| 356 | |
| 357 | int ProcessUnits() { |
| 358 | int slaughter_count = 0; |
no test coverage detected