aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Contexts.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-03-04 18:16:06 +0100
committerMartin Odersky <odersky@gmail.com>2013-03-04 18:16:06 +0100
commit7bcffbd8bb29a8bfd98f3838afa041927abdae15 (patch)
tree7eb004b9ad06761e8504402771efb73bfe6cdab1 /src/dotty/tools/dotc/core/Contexts.scala
parentd90e9fcf0991043a22422cae59dc507f25c77798 (diff)
downloaddotty-7bcffbd8bb29a8bfd98f3838afa041927abdae15.tar.gz
dotty-7bcffbd8bb29a8bfd98f3838afa041927abdae15.tar.bz2
dotty-7bcffbd8bb29a8bfd98f3838afa041927abdae15.zip
Rewrite of isVolatile
Also, now all calls to NamedType#underlying are montored for infinite cycles.
Diffstat (limited to 'src/dotty/tools/dotc/core/Contexts.scala')
-rw-r--r--src/dotty/tools/dotc/core/Contexts.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala
index a77910684..8c10c12f4 100644
--- a/src/dotty/tools/dotc/core/Contexts.scala
+++ b/src/dotty/tools/dotc/core/Contexts.scala
@@ -300,12 +300,12 @@ object Contexts {
override def hash(x: Type): Int = x.hash
}
- // TypeOps state
- /** The number of recursive invocation of isVolatile */
- private[core] var volatileRecursions: Int = 0
+ // Types state
+ /** The number of recursive invocation of underlying on a NamedType */
+ private[core] var underlyingRecursions: Int = 0
- /** The set of types on which a currently active invocation of isVolatile exists. */
- private[core] val pendingVolatiles = new mutable.HashSet[Type]
+ /** The set of named types on which a currently active invocation of underlying exists. */
+ private[core] val pendingUnderlying = new mutable.HashSet[Type]
// Phases state
/** Phases by id */
@@ -338,5 +338,5 @@ object Contexts {
/** How many recursive calls to isVolatile are performed before
* logging starts.
*/
- private[core] final val LogVolatileThreshold = 50
+ private[core] final val LogUnderlyingThreshold = 50
}