Integrated: 8233343: Deprecate -XX:+CriticalJNINatives flag which implements JavaCritical native functions

Coleen Phillimore coleenp at openjdk.java.net
Wed Oct 21 20:42:12 UTC 2020


On Tue, 20 Oct 2020 11:41:17 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> This change deprecates the -XX:+CriticalJNINatives flag and removes the develop flag -XX:+StressCriticalJNINatives.  See CSR for more details.
> 
> This change also removes the lazy GC lock in the critical native transition, and runs the critical native function as thread_in_Java.  I add a safepoint check at the end of the native function and transition to native and poll again for the safepoint after the function if a safepoint is requested.
> 
> Tested with tier 1-6 (we have a few tests that use this).  And built on linux-x86-open,linux-s390x-open,linux-arm32-debug,linux-ppc64le-debug.

This pull request has now been integrated.

Changeset: 56ea490f
Author:    Coleen Phillimore <coleenp at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/56ea490f
Stats:     1279 lines in 18 files changed: 77 ins; 1133 del; 69 mod

8233343: Deprecate -XX:+CriticalJNINatives flag which implements JavaCritical native functions

Reviewed-by: rehn, mdoerr, zgu

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

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


More information about the hotspot-dev mailing list