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

Replace use of AtomicReferenceFieldUpdater from BufferedInputStream with Unsafe

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • None
    • core-libs
    • b21

      The first BufferedInputStream is initialized during System.initPhase1, which we want to keep as quick as possible (since any work there may delay initialization of some VM subsystems), so it makes sense to carefully replace the ARFU.compareAndSet usage here with Unsafe.compareAndSetObject directly as a means to avoid initializing a slew of classes this early in the bootstrap process.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: