RFR: Adaptive heuristic should take reserved memory into account [v2]

William Kemper wkemper at openjdk.org
Tue Jun 28 00:03:24 UTC 2022


> Before this change, the heuristic considered the memory available to both the collector and mutators. Since the collector memory is not available to mutators, they may experience an allocation failure before the heuristic could anticipate. With this change, the heuristic looks at the memory available to mutators only. This has the effect of making the heuristic tend to start cycles earlier, thus avoiding degenerated cycles.

William Kemper has updated the pull request incrementally with one additional commit since the last revision:

  Adjust comments to stay with moved code

-------------

Changes:
  - all: https://git.openjdk.org/shenandoah/pull/147/files
  - new: https://git.openjdk.org/shenandoah/pull/147/files/c2e6a856..28096c5f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=shenandoah&pr=147&range=01
 - incr: https://webrevs.openjdk.org/?repo=shenandoah&pr=147&range=00-01

  Stats: 32 lines in 1 file changed: 15 ins; 16 del; 1 mod
  Patch: https://git.openjdk.org/shenandoah/pull/147.diff
  Fetch: git fetch https://git.openjdk.org/shenandoah pull/147/head:pull/147

PR: https://git.openjdk.org/shenandoah/pull/147


More information about the shenandoah-dev mailing list