[jdk17u-dev] RFR: 8283784: java_lang_String::as_platform_dependent_str stores to oop in native state

jyma22 duke at openjdk.org
Wed Nov 19 18:02:22 UTC 2025


On Tue, 23 Sep 2025 18:32:07 GMT, jyma22 <duke at openjdk.org> wrote:

> Hi all,
> 
> This pull request contains a backport of commit [c9a469a](https://github.com/openjdk/jdk/commit/c9a469a4591002e7f51317a8494a2df902db5bfa) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
> 
> The commit being backported was authored by David Holmes on Mar 30 2022 and was reviewed by Kim Barrett, Aleksey Shipilev, and Stefan Karlsson.
> 
> Testing: jtreg tier 1-3 as sanity test
> 
> Thanks!

Fix Request 17u

Backprting this patch eliminates the critical JNIHandles safepoint safety issue. The change adjusts block scope to ensure JNIHandles::destroy_local is called when back in VM state, which is a targeted fix that doesn't affect core functionality.
Path applies cleanly to 17u.
Included test passes. Ran tier1-3 as sanity check with no regressions observed.

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/3988#issuecomment-3553921084


More information about the jdk-updates-dev mailing list