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
Scala's NonFatal implementation allows for certain problematic exceptions to fall through, like ControlThrowable or InterruptedException.
Not catching such exceptions ends up interfering with resource handling. We need a NonFatal implementation that only catches VirtualMachineError. These errors are:
InternalError
OutOfMemoryError
StackOverflowError
This is because our aim is to not catch errors that should definitely crash the virtual machine, but for the others we need the declared finalizers to run.
The text was updated successfully, but these errors were encountered:
Scala's
NonFatal
implementation allows for certain problematic exceptions to fall through, likeControlThrowable
orInterruptedException
.Not catching such exceptions ends up interfering with resource handling. We need a
NonFatal
implementation that only catchesVirtualMachineError
. These errors are:InternalError
OutOfMemoryError
StackOverflowError
This is because our aim is to not catch errors that should definitely crash the virtual machine, but for the others we need the declared finalizers to run.
The text was updated successfully, but these errors were encountered: