Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions core/src/main/scala/com/phaller/rasync/HandlerPool.scala
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,6 @@ class HandlerPool(
p.future
}

def whileQuiescentResolveCell[K <: Key[V], V]: Unit = {
while (!cellsNotDone.isEmpty) {
val fut = this.quiescentResolveCell
Await.ready(fut, 15.minutes)
}
}

def whileQuiescentResolveDefault[K <: Key[V], V]: Unit = {
while (!cellsNotDone.isEmpty) {
val fut = this.quiescentResolveDefaults
Await.ready(fut, 15.minutes)
}
}

/**
* Wait for a quiescent state when no more tasks are being executed. Afterwards, it will resolve
* unfinished cycles (cSCCs) of cells using the keys resolve function and recursively wait for resolution.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package test
import java.util.concurrent.CountDownLatch

import com.phaller.rasync.lattice.{ DefaultKey, Updater }
import com.phaller.rasync.test.lattice.{ StringIntKey, StringIntUpdater }
import lattice.{ StringIntKey, StringIntUpdater }
import org.scalatest.FunSuite

import scala.concurrent.Await
Expand Down
2 changes: 0 additions & 2 deletions core/src/test/scala/com/phaller/rasync/test/base.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,6 @@ class BaseSuite extends FunSuite {
}

// resolve cells
pool.whileQuiescentResolveDefault
val fut = pool.quiescentResolveDefaults
Await.result(fut, 2.second)
latch.await()
Expand Down Expand Up @@ -1778,7 +1777,6 @@ class BaseSuite extends FunSuite {
}

// resolve cells
pool.whileQuiescentResolveDefault
val fut = pool.quiescentResolveDefaults
Await.result(fut, 2.second)
latch.await()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ object ImmutabilityAnalysis extends DefaultOneStepAnalysis {
typeImmutabilityAnalysis(project, classFileToObjectTypeCellCompleter, manager, classFile)
})
}
pool.whileQuiescentResolveDefault
val fut = pool.quiescentResolveDefaults
Await.ready(fut, 30.minutes)
pool.shutdown()

val endTime = System.currentTimeMillis
Expand Down Expand Up @@ -191,7 +192,8 @@ object ImmutabilityAnalysis extends DefaultOneStepAnalysis {
typeImmutabilityAnalysis(project, classFileToObjectTypeCellCompleter, manager, classFile)
})
}
pool.whileQuiescentResolveCell
val fut = pool.quiescentResolveCell
Await.ready(fut, 30.minutes)
pool.shutdown()

/* Fixes the results so the output looks good */
Expand Down