RFR: 8364434: Inconsistent BufferedContext state after GC [v4]

Laurent Bourgès lbourges at openjdk.org
Tue Aug 12 12:27:11 UTC 2025


On Tue, 12 Aug 2025 12:07:15 GMT, Nikita Gubarkov <ngubarkov at openjdk.org> wrote:

>> GC is not guaranteed. So its better to try for good number of iterations and not fail just because GC is not honoured.
>
> I've limited the heap size to 16Mb and allocating arrays of 1M references 1K times. Apparently, this is still not enough to reliably collect the Color.

Just use -XX:+PrintFlagsFinal ... to get real jvm parameter map to be compared accross platforms to ensure gc consistency.
Or linux pipeline is keeping strong references on Color objects in the specific java/native pipeline code!!!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26576#discussion_r2269671366


More information about the client-libs-dev mailing list