RFR: 8377347: jdk/jfr/event/gc/detailed/TestZAllocationStallEvent.java intermittent OOME [v2]

SendaoYan syan at openjdk.org
Tue Feb 10 14:17:11 UTC 2026


On Tue, 10 Feb 2026 13:07:50 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove unnecessary explict gc()
>
> test/jdk/jdk/jfr/event/gc/detailed/TestZAllocationStallEvent.java line 51:
> 
>> 49: 
>> 50:             // Allocate many large objects quickly, to outrun the GC
>> 51:             try {
> 
> Why using `try-catch` here, now that the `catch` block is empty?

After the max heap memory change from 32M to 64M, this new 4MB object still trigger OOME intermittently, so we need try catch the OOME and ignore it. Seems that GC maybe slower than object creation sometimes on some specific machines.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29601#discussion_r2788217967


More information about the hotspot-gc-dev mailing list