Integrated: 8378194: Protect process_pending_interp_only() work with JvmtiThreadState_lock
Serguei Spitsyn
sspitsyn at openjdk.org
Thu Feb 26 00:56:04 UTC 2026
On Wed, 18 Feb 2026 19:50:11 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
> The function `JvmtiThreadState::process_pending_interp_only()` should protect the check with `state->is_pending_interp_only_mode()` and call to `JvmtiEventController::enter_interp_only_mode(state)` with the `JvmtiThreadState_lock`. Some level of optimization with a check of `seen_interp_only_mode()` is used as the code path of the `process_pending_interp_only()` is hot. Then the `seen_interp_only_mode()` has to be set somewhat earlier when the `is_pending_interp_only_mode()` is set.
> This issue was discovered when in the work on the PR update of https://bugs.openjdk.org/browse/JDK-8373367 .
>
> Testing:
> - TBD: mach5 tiers 1-5
This pull request has now been integrated.
Changeset: d6044d3e
Author: Serguei Spitsyn <sspitsyn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/d6044d3e280dc8bb988a6dd7ab6c9a65b1735608
Stats: 18 lines in 3 files changed: 10 ins; 1 del; 7 mod
8378194: Protect process_pending_interp_only() work with JvmtiThreadState_lock
Reviewed-by: amenkov, lmesnik
-------------
PR: https://git.openjdk.org/jdk/pull/29800
More information about the serviceability-dev
mailing list