From 84ad34ad7a50a7f9d39d6958a7b8840e16c37a3c Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 1 Jul 2015 15:59:33 +0200 Subject: Add @sharable annotation Add @sharable annotation for classes and vals that are presumed to be safely sharable between threads. Also: Document CtxLazy. --- src/dotty/tools/dotc/core/TypeOps.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dotty/tools/dotc/core/TypeOps.scala') diff --git a/src/dotty/tools/dotc/core/TypeOps.scala b/src/dotty/tools/dotc/core/TypeOps.scala index 2b2ef83a2..b61d39749 100644 --- a/src/dotty/tools/dotc/core/TypeOps.scala +++ b/src/dotty/tools/dotc/core/TypeOps.scala @@ -1,4 +1,5 @@ -package dotty.tools.dotc +package dotty.tools +package dotc package core import Contexts._, Types._, Symbols._, Names._, Flags._, Scopes._ @@ -572,5 +573,5 @@ trait TypeOps { this: Context => // TODO: Make standalone object. object TypeOps { val emptyDNF = (Nil, Set[Name]()) :: Nil - var track = false // !!!DEBUG + @sharable var track = false // !!!DEBUG } -- cgit v1.2.3