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

static fields that might need to be volatile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 6
    • 5.0
    • security-libs
    • beta
    • generic
    • solaris_9

      This method contains an unsynchronized lazy initialization of a non-volatile static field. Because the compiler or processor may reorder instructions, threads are not guaranteed to see a completely initialized object, if the method can be called by multiple threads.

      java.security.SecureRandom
      SeedGenerator (line 460)

      sun.security.pkcs.ESSCertId
      private static HexDumpEncoder hexDumper = new HexDumpEncoder();

      sun.security.provider.SeedGenerator
      instance (line 109)

            claisunw Charlie Lai (Inactive)
            claisunw Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: