+str #18798: Fuzzing mode for the interpreter

*PHEAR ME*
This commit is contained in:
Endre Sándor Varga 2015-11-09 16:19:12 +01:00
parent 6a22cdebfc
commit c4417a8c39
19 changed files with 209 additions and 52 deletions

View file

@ -6,6 +6,7 @@ package akka.stream.impl
import java.util.concurrent.atomic.{ AtomicBoolean, AtomicLong }
import akka.actor._
import akka.event.Logging
import akka.dispatch.Dispatchers
import akka.pattern.ask
import akka.stream._
@ -29,6 +30,12 @@ private[akka] case class ActorMaterializerImpl(system: ActorSystem,
flowNameCounter: AtomicLong,
namePrefix: String) extends ActorMaterializer {
import akka.stream.impl.Stages._
private val logger = Logging.getLogger(system, this)
if (settings.fuzzingMode) {
logger.warning("Fuzzing mode is enabled on this system. If you see this warning on your production system then " +
"set akka.materializer.debug.fuzzing-mode to off.")
}
override def shutdown(): Unit =
if (haveShutDown.compareAndSet(false, true)) supervisor ! PoisonPill