RFR: 8373800: Remove ScopedValueBindingsResolver
Ioi Lam
iklam at openjdk.org
Tue Dec 16 14:50:53 UTC 2025
The `ScopedValueBindingsResolver::ScopedValueBindingsResolver()` constructor is invoked the first time
`JVM_FindScopedValueBindings` is invoked, and may cause unexpected behavior if the loading of the `ScopedValue$Carrier` class fails to load (due to OOM, etc).
With this PR, `ScopedValue$Carrier` is loaded during bootstrap with all other `vmClasses`.
-------------
Commit messages:
- Remove ScopedValueBindingsResolver to avoid potential NULL pointer returned by SystemDictionary::resolve_or_fail()
Changes: https://git.openjdk.org/jdk/pull/28849/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28849&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8373800
Stats: 15 lines in 2 files changed: 3 ins; 11 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/28849.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28849/head:pull/28849
PR: https://git.openjdk.org/jdk/pull/28849
More information about the hotspot-dev
mailing list