File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/repl Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ class StopRepl
77object 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}
You can’t perform that action at this time.
0 commit comments