On Tue, 30 Jun 2026 19:20:20 GMT, Alan Bateman <[email protected]> wrote:
>> src/hotspot/share/prims/jvmti.xml line 3401: >> >>> 3399: The implementation is unable to force the current frame to >>> return >>> 3400: (e.g. current frame is executing a native method or the >>> current frame is the >>> 3401: constructor for a value class) >> >> It is nice that the value class initializers are not impacted, so there is >> no need to return `OPAQUE_FRAME` for value class initializer frames. > > The more general restriction should probably be that ForceEarlyReturnVoid > should fail for constructors if the class has strictly-initialized instance > fields, and fail for class initializers if the class has strictly-initialized > static fields. We can look at that later. Thanks. I wonder if we need to say that it only applies when preview features are enabled. For instance, there is this phrase in the `ObjectFree` event spec: "When preview features are enabled, this event does not support value object allocations." ------------- PR Review Comment: https://git.openjdk.org/valhalla/pull/2604#discussion_r3501658310
