On Mon, 13 Oct 2025 14:25:58 GMT, Per Minborg <[email protected]> wrote:
>> src/java.base/share/classes/java/lang/LazyConstant.java line 276: >> >>> 274: * this method might block or throw. >>> 275: * >>> 276: * @implSpec The order of potential initialization triggering is >>> specified as: >> >> Do we really need to specify this? > > This is a corner case, but we might have two uninitialized LCs. The order in > which they get computed might be significant (e.g., they operate on shared > data structures). I understand that the order might be significant -- but I still wonder if we should specify that order. This seems to add constraints to the implementation. Do we really want clients to rely on the order in which lazy constants are initialized when calling `equals` ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/27605#discussion_r2426522315
