RFR: 8364343: Virtual Thread transition management needs to be independent of JVM TI [v4]

David Holmes dholmes at openjdk.org
Wed Nov 26 07:35:49 UTC 2025


On Tue, 25 Nov 2025 23:53:40 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> Yes, from what I see this same construct is used in many places. Seems this is valid because a pointer used in a boolean context evaluates to false if nullptr and true if non-null. :)
>
> This could be a simple cleanup of all these occurrences later.

Yes this is terribly obscure (doing the assignment in the loop condition check - surprised that is even allowed) and also violates the style-guide in relation to implicit booleans. But frankly it is an awful use of a for-loop in my opinion.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28361#discussion_r2563714065


More information about the graal-dev mailing list