On Mon, 27 Apr 2026 06:31:00 GMT, David Holmes <[email protected]> wrote:

> Please review this change to fix a problem that can rise if JVM TI suspension 
> is allowed when a thread is executing in a JNI "critical" region. The gory 
> details are in the first comment so that the PR emails are shorter
> 
> A new test is introduced to check that we cannot suspend in a critical region
> 
> Other testing:
> - Tiers 1-5 on all platforms
> 
> The key insights into this solution are attributed to @pchilano. Everything 
> simpler I tried was buggy and led me back to Patricio's suggested changes to 
> the operation filtering. The actual details of this and any remaining bugs in 
> it are all my own.
> 
> Thanks.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 840154df
Author:    David Holmes <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/840154df43557bf0a365e9aacd231000fbb58ca6
Stats:     443 lines in 9 files changed: 430 ins; 2 del; 11 mod

8373839: Disable JVM TI suspension during JNI critical regions

Co-authored-by: Patricio Chilano Mateo <[email protected]>
Reviewed-by: sspitsyn, pchilanomate

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

PR: https://git.openjdk.org/jdk/pull/30936

Reply via email to