[jdk17] Integrated: 8270085: Suspend during block transition may deadlock if lock held

Patricio Chilano Mateo pchilanomate at openjdk.java.net
Thu Jul 22 14:33:55 UTC 2021


On Tue, 20 Jul 2021 20:06:12 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

> Hi all,
> 
> The following patch fixes deadlocks issues that could occur when checking for suspension while holding VM locks. See the bug description for a concrete case. The solution is to avoid checking for suspend requests when using the TBIVM wrapper. The original patch was actually written by @robehn(now on vacations) and I only made small changes.
> 
> Tested in mach5 tiers1-7. I also verified that the new added test SuspendBlocked.java deadlocks with the current bits and passes with this patch.
> 
> Thanks,
> 
> Patricio

This pull request has now been integrated.

Changeset: e7f90093
Author:    Patricio Chilano Mateo <pchilanomate at openjdk.org>
URL:       https://git.openjdk.java.net/jdk17/commit/e7f9009315f1fdf33d6539c413c224f925c9ffb0
Stats:     219 lines in 9 files changed: 157 ins; 35 del; 27 mod

8270085: Suspend during block transition may deadlock if lock held

Co-authored-by: Robbin Ehn <rehn at openjdk.org>
Co-authored-by: Patricio Chilano Mateo <pchilanomate at openjdk.org>
Reviewed-by: dcubed, dholmes, coleenp

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

PR: https://git.openjdk.java.net/jdk17/pull/257


More information about the hotspot-runtime-dev mailing list