Skip to content

Commit

Permalink
Enable fiber dumps on Native
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Sep 5, 2023
1 parent 852da3f commit 0a6a8e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ioapp-tests/src/test/scala/IOAppSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0a6a8e0

Please sign in to comment.