Integrated: 8273635: Attempting to acquire lock StackWatermark_lock/9 out of order with lock tty_lock/3
Coleen Phillimore
coleenp at openjdk.java.net
Tue Sep 14 13:13:09 UTC 2021
On Mon, 13 Sep 2021 20:04:56 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> This change reverts the rank ordering of ttyLock and StackWatermark_lock because the latter is held through a very large region and printing all of this to a buffer with xmlstream is non-trivial.
> With this change, if tty->print_cr() is done while holding the stackwatermark lock or lower (which is service ranking, etc), a lock inversion will happen with ttyLock. This doesn't happen now because all the code in GC and much of the rest of the runtime use UL and not tty->print().
> Tested with tier1-6.
This pull request has now been integrated.
Changeset: 1d3eb147
Author: Coleen Phillimore <coleenp at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/1d3eb147ee7dd9b237d3cf633a5792544f8cac30
Stats: 5 lines in 2 files changed: 1 ins; 1 del; 3 mod
8273635: Attempting to acquire lock StackWatermark_lock/9 out of order with lock tty_lock/3
Reviewed-by: dholmes, eosterlund
-------------
PR: https://git.openjdk.java.net/jdk/pull/5499
More information about the hotspot-dev
mailing list