Integrated: 8284404: Too aggressive sweeping with Loom

Erik Österlund eosterlund at openjdk.org
Mon Jun 20 06:46:19 UTC 2022


On Thu, 12 May 2022 07:30:39 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:

> The normal sweeping heuristics trigger sweeping whenever 0.5% of the reserved code cache could have died. Normally that is fine, but with loom such sweeping requires a full GC cycle, as stacks can now be in the Java heap as well. In that context, 0.5% does seem to be a bit too trigger happy. So this patch adjusts that default when using loom to 10x higher.
> If you run something like jython which spins up a lot of code, it unsurprisingly triggers a lot less GCs due to code cache pressure.

This pull request has now been integrated.

Changeset: 7d4df6a8
Author:    Erik Österlund <eosterlund at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7d4df6a83f6333e0e73686b807ee5d4b0ac10cd2
Stats:     8 lines in 1 file changed: 7 ins; 0 del; 1 mod

8284404: Too aggressive sweeping with Loom

Reviewed-by: kvn, thartmann

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

PR: https://git.openjdk.org/jdk/pull/8673


More information about the hotspot-compiler-dev mailing list