@@ -167,16 +167,11 @@ object SymDenotations {
167
167
}
168
168
}
169
169
else
170
- val traceCycles = CyclicReference .isTraced
171
- try
172
- if traceCycles then
173
- CyclicReference .pushTrace(" compute the signature of " , symbol, " " )
170
+ CyclicReference .trace(" compute the signature of " , symbol):
174
171
if myFlags.is(Touched ) then
175
172
throw CyclicReference (this )(using ctx.withOwner(symbol))
176
173
myFlags |= Touched
177
174
atPhase(validFor.firstPhaseId)(completer.complete(this ))
178
- finally
179
- if traceCycles then CyclicReference .popTrace()
180
175
181
176
protected [dotc] def info_= (tp : Type ): Unit = {
182
177
/* // DEBUG
@@ -2980,12 +2975,9 @@ object SymDenotations {
2980
2975
def apply (clsd : ClassDenotation )(implicit onBehalf : BaseData , ctx : Context )
2981
2976
: (List [ClassSymbol ], BaseClassSet ) = {
2982
2977
assert(isValid)
2983
- val traceCycles = CyclicReference .isTraced
2984
- try
2985
- if traceCycles then
2986
- CyclicReference .pushTrace(" compute the base classes of " , clsd.symbol, " " )
2987
- if (cache != null ) cache.uncheckedNN
2988
- else {
2978
+ CyclicReference .trace(" compute the base classes of " , clsd.symbol):
2979
+ if cache != null then cache.uncheckedNN
2980
+ else
2989
2981
if (locked) throw CyclicReference (clsd)
2990
2982
locked = true
2991
2983
provisional = false
@@ -2995,10 +2987,6 @@ object SymDenotations {
2995
2987
if (! provisional) cache = computed
2996
2988
else onBehalf.signalProvisional()
2997
2989
computed
2998
- }
2999
- finally
3000
- if traceCycles then CyclicReference .popTrace()
3001
- addDependent(onBehalf)
3002
2990
}
3003
2991
3004
2992
def sameGroup (p1 : Phase , p2 : Phase ) = p1.sameParentsStartId == p2.sameParentsStartId
0 commit comments