title: StringCoding has threadLocal
body: <p><a href="https://i.stack.imgur.com/NYivO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NYivO.png" alt="StringCoding line 513" /></a>
  <a href="https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/master/src/java.base/share/classes/java/lang/StringCoding.java" rel="nofollow noreferrer">https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/master/src/java.base/share/classes/java/lang/StringCoding.java</a> line 513</p>
  <p>This ThreadLocal holds the last generated string</p>
  <p>I'm using a very large string before returning the thread to the pool, so clearing it with</p>
  <pre><code>new String(new char[0]);
  </code></pre>
  <p>fixes the issue, but maybe I'm missing something.</p>
  <p>Can anyone understand why it's there? Maybe I shouldn't clear it.</p>