On Sat, 16 May 2026 14:22:39 GMT, Marius Hanl <[email protected]> wrote:
>> modules/javafx.graphics/src/main/java/com/sun/scenario/effect/impl/Renderer.java
>> line 90:
>>
>>> 88: private static final class PeerCacheKey {
>>> 89: String name;
>>> 90: int unrollCount;
>>
>> Could this simply be `record PeerCacheKey(String name, int unrollCount) {}` ?
>
> Initially I had the same thought, but the variables need to be modified
> (set), so not possible with a record unfortunately.
The key needs to be mutable, using a records defeats the point of eliding
object allocations.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2091#discussion_r3252931203