We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74d8c8e commit b73e372Copy full SHA for b73e372
compiler/src/dotty/tools/dotc/transform/CheckReentrant.scala
@@ -7,6 +7,7 @@ import Flags._
7
import Contexts.Context
8
import Symbols._
9
import Decorators._
10
+import NameKinds.MemoCacheName
11
12
13
/** A no-op transform that checks whether the compiled sources are re-entrant.
@@ -44,6 +45,7 @@ class CheckReentrant extends MiniPhase {
44
45
def isIgnored(sym: Symbol)(implicit ctx: Context): Boolean =
46
sym.hasAnnotation(sharableAnnot()) ||
47
sym.hasAnnotation(unsharedAnnot()) ||
48
+ sym.name.is(MemoCacheName) ||
49
sym.owner == defn.EnumValuesClass
50
// enum values are initialized eagerly before use
51
// in the long run, we should make them vals
0 commit comments