Skip to content

Commit f947236

Browse files
committed
Add sharable to global object
1 parent c17a164 commit f947236

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/Profile.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import util.Spans.{Span, NoSpan}
1111
import Decorators.i
1212
import parsing.Scanners.Scanner
1313
import io.AbstractFile
14+
import annotation.internal.sharable
1415

1516
abstract class Profile:
1617
def unitProfile(unit: CompilationUnit): Profile.Info
@@ -28,7 +29,7 @@ object Profile:
2829
inline val TastyChunkSize = 50
2930

3031
case class MethodInfo(meth: Symbol, size: Int, span: Span)
31-
object NoInfo extends MethodInfo(NoSymbol, 0, NoSpan)
32+
@sharable object NoInfo extends MethodInfo(NoSymbol, 0, NoSpan)
3233

3334
class Info(details: Int):
3435
var lineCount: Int = 0

0 commit comments

Comments
 (0)