Skip to content

Commit d37d13b

Browse files
TheElectronWillsmarter
authored andcommitted
Mark Invoker as sharable to bypass -Ycheck-reentrant
1 parent b172922 commit d37d13b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/scala/runtime/Invoker.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import scala.collection.concurrent.TrieMap
55
import java.nio.file.Files
66
import java.io.FileWriter
77
import java.io.File
8+
import scala.annotation.internal.sharable
89

10+
@sharable // avoids false positive by -Ycheck-reentrant
911
object Invoker {
1012
private val runtimeUUID = java.util.UUID.randomUUID()
1113

0 commit comments

Comments
 (0)