diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2016-07-19 12:43:27 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2016-07-20 10:24:43 +0200 |
commit | 2b1e4efa0a8f30bda7fde8492e8ecfdcbf4801cb (patch) | |
tree | e1df6785a3eafafe08675a4f0cc35e4e4cab5a75 /src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala | |
parent | 3c43a7bc389eba0d7d52ef0d0cdb19812c4a8a0f (diff) | |
download | scala-2b1e4efa0a8f30bda7fde8492e8ecfdcbf4801cb.tar.gz scala-2b1e4efa0a8f30bda7fde8492e8ecfdcbf4801cb.tar.bz2 scala-2b1e4efa0a8f30bda7fde8492e8ecfdcbf4801cb.zip |
SD-48 limit the lenght of inlined local variable names
When inlining local variables, the names are prefixed with the callee
method name. In long chains of inlining, these names can grow
indefinitely. This commits introduces a limit.
Diffstat (limited to 'src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala b/src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala index 7b2686e7a9..e04e73304f 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/BTypes.scala @@ -1164,4 +1164,7 @@ object BTypes { // no static way (without symbol table instance) to get to nme.ScalaATTR / ScalaSignatureATTR val ScalaAttributeName = "Scala" val ScalaSigAttributeName = "ScalaSig" + + // when inlining, local variable names of the callee are prefixed with the name of the callee method + val InlinedLocalVariablePrefixMaxLenght = 128 } |