@@ -168,16 +168,11 @@ object SymDenotations {
168
168
}
169
169
}
170
170
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):
175
172
if myFlags.is(Touched ) then
176
173
throw CyclicReference (this )(using ctx.withOwner(symbol))
177
174
myFlags |= Touched
178
175
atPhase(validFor.firstPhaseId)(completer.complete(this ))
179
- finally
180
- if traceCycles then CyclicReference .popTrace()
181
176
182
177
protected [dotc] def info_= (tp : Type ): Unit = {
183
178
/* // DEBUG
@@ -2994,12 +2989,9 @@ object SymDenotations {
2994
2989
def apply (clsd : ClassDenotation )(implicit onBehalf : BaseData , ctx : Context )
2995
2990
: (List [ClassSymbol ], BaseClassSet ) = {
2996
2991
assert(isValid)
2997
- val traceCycles = CyclicReference .isTraced
2998
- try
2999
- if traceCycles then
3000
- CyclicReference .pushTrace(" compute the base classes of " , clsd.symbol, " " )
3001
- if (cache != null ) cache.uncheckedNN
3002
- else {
2992
+ CyclicReference .trace(" compute the base classes of " , clsd.symbol):
2993
+ if cache != null then cache.uncheckedNN
2994
+ else
3003
2995
if (locked) throw CyclicReference (clsd)
3004
2996
locked = true
3005
2997
provisional = false
@@ -3009,10 +3001,6 @@ object SymDenotations {
3009
3001
if (! provisional) cache = computed
3010
3002
else onBehalf.signalProvisional()
3011
3003
computed
3012
- }
3013
- finally
3014
- if traceCycles then CyclicReference .popTrace()
3015
- addDependent(onBehalf)
3016
3004
}
3017
3005
3018
3006
def sameGroup (p1 : Phase , p2 : Phase ) = p1.sameParentsStartId == p2.sameParentsStartId
0 commit comments