RFR: 8350813: Rendering of bulky sound bank from MIDI sequence can cause OutOfMemoryError [v4]

Sergey Bylokhov serb at openjdk.org
Wed Mar 5 22:41:07 UTC 2025


On Wed, 5 Mar 2025 21:23:57 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

> No we should not. The OutOfMemoryError is an extension of VirtualMachineError which says "Thrown to indicate that the Java Virtual Machine is broken or has run out of resources necessary for it to continue operating."

Then just check all usages of "catch (OutOfMemoryError e)" in the java.base and java.desktop/sound/2d/ modules. You did not mention the doc for OOM "Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, **and no more memory could be made available by the garbage collector**."

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23814#discussion_r1982286728


More information about the client-libs-dev mailing list