@@ -168,16 +168,11 @@ object SymDenotations {
168168 }
169169 }
170170 else
171- val traceCycles = CyclicReference .isTraced
172- try
173- if traceCycles then
174- CyclicReference .pushTrace(" compute the signature of " , symbol, " " )
171+ CyclicReference .trace(" compute the signature of " , symbol):
175172 if myFlags.is(Touched ) then
176173 throw CyclicReference (this )(using ctx.withOwner(symbol))
177174 myFlags |= Touched
178175 atPhase(validFor.firstPhaseId)(completer.complete(this ))
179- finally
180- if traceCycles then CyclicReference .popTrace()
181176
182177 protected [dotc] def info_= (tp : Type ): Unit = {
183178 /* // DEBUG
@@ -2992,12 +2987,9 @@ object SymDenotations {
29922987 def apply (clsd : ClassDenotation )(implicit onBehalf : BaseData , ctx : Context )
29932988 : (List [ClassSymbol ], BaseClassSet ) = {
29942989 assert(isValid)
2995- val traceCycles = CyclicReference .isTraced
2996- try
2997- if traceCycles then
2998- CyclicReference .pushTrace(" compute the base classes of " , clsd.symbol, " " )
2999- if (cache != null ) cache.uncheckedNN
3000- else {
2990+ CyclicReference .trace(" compute the base classes of " , clsd.symbol):
2991+ if cache != null then cache.uncheckedNN
2992+ else
30012993 if (locked) throw CyclicReference (clsd)
30022994 locked = true
30032995 provisional = false
@@ -3007,10 +2999,6 @@ object SymDenotations {
30072999 if (! provisional) cache = computed
30083000 else onBehalf.signalProvisional()
30093001 computed
3010- }
3011- finally
3012- if traceCycles then CyclicReference .popTrace()
3013- addDependent(onBehalf)
30143002 }
30153003
30163004 def sameGroup (p1 : Phase , p2 : Phase ) = p1.sameParentsStartId == p2.sameParentsStartId
0 commit comments