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

Nikita Gubarkov ngubarkov at openjdk.org
Tue Aug 12 12:10:12 UTC 2025


On Tue, 12 Aug 2025 11:53:13 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

>> If test depends on gc collector + special mode, then set explicitely the needed gc (G1 ?) with small heap + needed tuning to ensure consistent behaviour accross platform if possible and not rely on platform's default behaviour...
>> 
>> My 2 cents.
>> Laurent
>
> 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.

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

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


More information about the client-libs-dev mailing list