Skip to content

Commit 9143570

Browse files
committed
.
1 parent 7fdf5c6 commit 9143570

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/src/dotty/tools/repl/ReplBytecodeInstrumentation.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ object ReplBytecodeInstrumentation:
3535
case _: java.lang.ClassNotFoundException => None
3636
}
3737
for(cancelClass <- cancelClassOpt){
38-
val setAllStopMethod = cancelClass.getDeclaredMethod("setAllStop", classOf[Boolean])
38+
val setAllStopMethod = cancelClass.getDeclaredMethod("setStop", classOf[Boolean])
3939
setAllStopMethod.invoke(null, b.asInstanceOf[AnyRef])
4040
}
4141

compiler/src/dotty/tools/repl/StopRepl.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ class StopRepl
77
object StopRepl {
88
// Needs to be volatile, otherwise changes to this may not get seen by other threads
99
// for arbitrarily long periods of time (minutes!)
10-
@static @volatile private var allStop: Boolean = false
10+
@static @volatile private var stop: Boolean = false
1111

12-
@static def setAllStop(n: Boolean): Unit = { allStop = n }
12+
@static def setStop(n: Boolean): Unit = { stop = n }
1313

1414
/** Check if execution should stop, and throw ThreadDeath if so */
1515
@static def throwIfReplStopped(): Unit = {
16-
if (allStop) throw new ThreadDeath()
16+
if (stop) throw new ThreadDeath()
1717
}
1818
}

0 commit comments

Comments
 (0)