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

ReflectionFactory.checkInitted() is not thread-safe

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      The internal method jdk.internal.reflect.ReflectionFactory.checkInitted() is not thread-safe. The field `initted` which is used to track whether initialization is finished is not `volatile`. It can therefore happen based on the Java Memory Model that a thread does not notice that another one has already performed initialization, or that it reads `initted == true` but does not read the initialized value for the other fields.


            plevart Peter Levart
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: