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.


            Assignee:
            Peter Levart
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: