piotrga/akka-modules — comment on commit 1e9d0e39680024eb13de685c713376a73f6ea391
File: akka-camel/src/main/scala/akka/util/ErrorUtils.scala line 29
By viktorklang:

The docs lies.

try {Right(block())} catch {case e => Left(e)}

Means that if the OOME is thrown in Left(e) which will be the case most likely if there's an OOME in block() or Right(), the other blocks won't be executed.
I suggest removal of this method and solving htep roblem in a less wasteful manner.