Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace usage of scala.util.control.NonFatal #349

alexandru opened this issue Apr 19, 2017 · 0 comments


None yet
1 participant
Copy link

commented Apr 19, 2017

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.

@alexandru alexandru self-assigned this Apr 19, 2017

@alexandru alexandru added this to the 2.3.0 milestone Apr 19, 2017

@alexandru alexandru closed this in d3b0fe7 Apr 19, 2017

@DavidGregory084 DavidGregory084 referenced this issue Sep 18, 2017


Scalaz 8: scalaz.effect #1399

2 of 2 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.