diff --git a/core/native/src/main/scala/cats/effect/unsafe/FiberMonitorPlatform.scala b/core/native/src/main/scala/cats/effect/unsafe/FiberMonitorPlatform.scala index f38fb411b7..f545b92e91 100644 --- a/core/native/src/main/scala/cats/effect/unsafe/FiberMonitorPlatform.scala +++ b/core/native/src/main/scala/cats/effect/unsafe/FiberMonitorPlatform.scala @@ -18,10 +18,11 @@ package cats.effect package unsafe import scala.concurrent.ExecutionContext +import scala.scalanative.meta.LinktimeInfo private[effect] abstract class FiberMonitorPlatform { def apply(compute: ExecutionContext): FiberMonitor = { - if (false) { // LinktimeInfo.debugMode && LinktimeInfo.isWeakReferenceSupported + if (LinktimeInfo.debugMode && LinktimeInfo.isWeakReferenceSupported) { if (compute.isInstanceOf[EventLoopExecutorScheduler[_]]) { val loop = compute.asInstanceOf[EventLoopExecutorScheduler[_]] new FiberMonitorImpl(loop) diff --git a/ioapp-tests/src/test/scala/IOAppSpec.scala b/ioapp-tests/src/test/scala/IOAppSpec.scala index 6f640336b9..808e2fe122 100644 --- a/ioapp-tests/src/test/scala/IOAppSpec.scala +++ b/ioapp-tests/src/test/scala/IOAppSpec.scala @@ -286,7 +286,7 @@ class IOAppSpec extends Specification { h.awaitStatus() mustEqual 1 } - if (!isJava8 && !isWindows && platform != Native) { + if (!isJava8 && !isWindows) { // JDK 8 does not have free signals for live fiber snapshots // cannot observe signals sent to process termination on Windows "live fiber snapshot" in {