Integrated: 8271121: ZGC: stack overflow (segv) when -Xlog:gc+start=debug

Per Liden pliden at openjdk.java.net
Thu Aug 5 12:44:32 UTC 2021


On Wed, 4 Aug 2021 09:22:54 GMT, Per Liden <pliden at openjdk.org> wrote:

> When an allocation stall happens we're trying to access oops (the thread and thread name) while logging. We shouldn't do that since it can lead to a recursive allocation stall situation, which eventually will cause a stack overflow. I suggest we simply don't log anything in ZStatCriticalPhase::register_start(). The useful part of the logging happens in ZStatCriticalPhase::register_end() anyway, where it's safe to access oops.

This pull request has now been integrated.

Changeset: 18dd4d46
Author:    Per Liden <pliden at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/18dd4d469d120276d05e74607d780f01056f1a8b
Stats:     4 lines in 1 file changed: 2 ins; 0 del; 2 mod

8271121: ZGC: stack overflow (segv) when -Xlog:gc+start=debug

Reviewed-by: ayang, eosterlund

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

PR: https://git.openjdk.java.net/jdk/pull/4990



More information about the hotspot-gc-dev mailing list