Convert StringContent's Position usage tracking to use a WeakReference

The test that is added only implicitly tests this but I added it because of a 
complete lack of any test for this code.

-------------

Commit messages:
 - 8364230

Changes: https://git.openjdk.org/jdk/pull/26519/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26519&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8364230
  Stats: 92 lines in 2 files changed: 71 ins; 14 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/26519.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26519/head:pull/26519

PR: https://git.openjdk.org/jdk/pull/26519

Reply via email to