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

Patricio Chilano Mateo pchilanomate at openjdk.java.net
Wed Jul 21 21:25:23 UTC 2021


> 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

Patricio Chilano Mateo has updated the pull request incrementally with one additional commit since the last revision:

  fix comment in should_process_no_suspend()

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

Changes:
  - all: https://git.openjdk.java.net/jdk17/pull/257/files
  - new: https://git.openjdk.java.net/jdk17/pull/257/files/6ad7c4ea..6cfa7712

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk17&pr=257&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk17&pr=257&range=01-02

  Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/257.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/257/head:pull/257

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


More information about the hotspot-runtime-dev mailing list