(&self)
| 1404 | // This should ideally become a conditional jump. |
| 1405 | self.promote_cold(current_tick); |
| 1406 | } |
| 1407 | } |
| 1408 | |
| 1409 | /// The actual work-promotion implementation. Must be called infrequently. |
| 1410 | #[cold] |
| 1411 | fn promote_cold(&self, current_tick: u64) { |
| 1412 | // Update the promote tick so that `promote` won't call this again soon. |
| 1413 | self.last_promote_tick.set(current_tick); |
| 1414 | |
| 1415 | // Early out if it seems like all workers are already awake. |
no test coverage detected