From baf9c6f3803d64b7d03fa9193871a85cd29c00b8 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 25 Oct 2010 12:25:05 +0000 Subject: Two comments where presentation compiler sanity... Two comments where presentation compiler sanity assertions should be inserted. --- src/compiler/scala/tools/nsc/symtab/SymbolTable.scala | 1 + src/compiler/scala/tools/nsc/symtab/Symbols.scala | 1 + 2 files changed, 2 insertions(+) diff --git a/src/compiler/scala/tools/nsc/symtab/SymbolTable.scala b/src/compiler/scala/tools/nsc/symtab/SymbolTable.scala index 04bc0564b8..b410572f7b 100644 --- a/src/compiler/scala/tools/nsc/symtab/SymbolTable.scala +++ b/src/compiler/scala/tools/nsc/symtab/SymbolTable.scala @@ -97,6 +97,7 @@ abstract class SymbolTable extends reflect.generic.Universe /** Perform given operation at given phase */ final def atPhase[T](ph: Phase)(op: => T): T = { + // Eugene: insert same thread assertion here val current = phase try { phase = ph diff --git a/src/compiler/scala/tools/nsc/symtab/Symbols.scala b/src/compiler/scala/tools/nsc/symtab/Symbols.scala index 693d188a7a..18c34eb036 100644 --- a/src/compiler/scala/tools/nsc/symtab/Symbols.scala +++ b/src/compiler/scala/tools/nsc/symtab/Symbols.scala @@ -707,6 +707,7 @@ trait Symbols extends reflect.generic.Symbols { self: SymbolTable => * ensuring that symbol is initialized (i.e. type is completed). */ override def info: Type = try { + // Eugene: insert same thread assertion here var cnt = 0 while (validTo == NoPeriod) { //if (settings.debug.value) System.out.println("completing " + this);//DEBUG -- cgit v1.2.3