You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This's a bad way to validate buffer size as explain here.
And another serious consequence, catching OutOfMemoryError in Java code requires the applications not to use JVM options like CrashOnOutOfMemoryError or ExitOnOutOfMemoryError to automatically restart the JVM when it runs out of memory.
I'm wondering if there is a specific reason why that could not be a simple conditional validation?
The text was updated successfully, but these errors were encountered:
In SnappyInputStream,
OutOfMemoryError
is used to validate the buffer size to allocated.snappy-java/src/main/java/org/xerial/snappy/SnappyInputStream.java
Lines 451 to 456 in dfbf67a
This's a bad way to validate buffer size as explain here.
And another serious consequence, catching
OutOfMemoryError
in Java code requires the applications not to use JVM options likeCrashOnOutOfMemoryError
orExitOnOutOfMemoryError
to automatically restart the JVM when it runs out of memory.I'm wondering if there is a specific reason why that could not be a simple conditional validation?
The text was updated successfully, but these errors were encountered: