savina
savina copied to clipboard
PiPrecisionAkkaActorBenchmark uses AtomicInteger for numWorkersTerminated
Not sure why this benchmark uses an atomic integer, seems to be overkill, no? I would expect this to be already safe: https://github.com/shamsmahmood/savina/blob/master/src/main/scala/edu/rice/habanero/benchmarks/piprecision/PiPrecisionAkkaActorBenchmark.scala#L53
Similar issue are in the SleepingBarber and Philosopher benchmark. They use shared Atomics for communication.