Skip to content

Commit

Permalink
Update gcPaceScavenger function to include new scavenger behavior a…
Browse files Browse the repository at this point in the history
…nd goals

* **gcPaceScavenger function:**
  - Add memory limit goal calculation and update logic
  - Add gcPercent goal calculation and update logic
  - Adjust goal alignment to physical page boundary
  - Update heapRetainedNow calculation and comparison with goals

* **scavenge struct:**
  - Add `memoryLimitGoal` and `gcPercentGoal` fields
  - Add `assistTime` and `backgroundTime` fields

* **scavengerState struct:**
  - Add `targetCPUFraction`, `sleepRatio`, and `sleepController` fields
  - Add `controllerCooldown`, `sleepStub`, `scavenge`, `shouldStop`, and `gomaxprocs` fields
  • Loading branch information
abdulrahman305 committed Oct 28, 2024
1 parent 5431e1b commit c75d422
Showing 1 changed file with 12 additions and 707 deletions.
Loading

0 comments on commit c75d422

Please sign in to comment.