On Tue, 30 Jun 2026 20:30:24 GMT, Serguei Spitsyn <[email protected]> wrote:

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

Okay, I can make that clearer.

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2604#discussion_r3504414562

Reply via email to