Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8150417

Make ThreadLocalRandom more robust against static initialization cycles

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • None
    • core-libs
    • None

    Description

      ThreadLocalRandom (and SplittableRandom) are at risk of invoking themselves recursively in their <clinit>, which could result in disaster. Defend against future possibility of that by only invoking "foreign" code in <clinit> when recursive invocation is safe.

      Attachments

        Activity

          People

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: