RFR: 8373800: Remove ScopedValueBindingsResolver

Alan Bateman alanb at openjdk.org
Wed Dec 17 09:56:35 UTC 2025


On Tue, 16 Dec 2025 14:44:47 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> 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`.

src/hotspot/share/classfile/vmClassMacros.hpp line 193:

> 191:   do_klass(FillerObject_klass,                          jdk_internal_vm_FillerObject                          ) \
> 192:                                                                                                                 \
> 193:   /* JEP 506: Scoped Values */                                                                                  \

I think you cn drop "JEP 506" from the comment as the feature is permanent now.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28849#discussion_r2626359823


More information about the hotspot-dev mailing list