On Thu, 2 Jul 2026 18:20:52 GMT, Chris Plummer <[email protected]> wrote:
>> For reference, here are examples from JDK 19 when virtual threads were in >> preview. >> >> https://docs.oracle.com/en/java/javase/19/docs/api/jdk.jdi/com/sun/jdi/ThreadReference.html >> https://docs.oracle.com/en/java/javase/19/docs/api/jdk.jdi/com/sun/jdi/StackFrame.html >> >> (search for "virtual thread" on these pages) >> >> It avoided prefixing the clarifications with "When preview are enabled ..." >> and instead spoke about the feature in the target VM. This worked because >> the feature, and the behavior specified, didn't change in second preview or >> when it became a permanent feature in JDK 21. > > I've udpated this to be handled the same way as virtual threads was handled > in JDK 19. There are no preview references (virtual threads only did that for > new APIs, and we have no new APIs here). The spec simply says "when the > object is a value object..." similar to how for JDK 19 it says "when the > thread is a virtual thread". Thanks, I think this works and keeps it simple. ------------- PR Review Comment: https://git.openjdk.org/valhalla/pull/2611#discussion_r3515306048
