RFR: 8273456: Do not hold ttyLock around stack walking

Coleen Phillimore coleenp at openjdk.java.net
Thu Sep 9 15:02:16 UTC 2021


On Thu, 9 Sep 2021 14:54:01 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> This change moves the tty rank back down to near access, and prints stack traces to stringStream to avoid holding the tty lock while trying to take the stackwatermark lock.
> Tested with tier1-8 (7,8 still in progress but no failures so far).

src/hotspot/share/runtime/deoptimization.cpp line 213:

> 211:     assert(Universe::heap()->is_in_or_null(result), "must be heap pointer");
> 212:     if (TraceDeoptimization) {
> 213:       ttyLocker ttyl;

The change also removes obvious places where ttyLocker isn't needed.

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

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


More information about the hotspot-dev mailing list