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

Replace use of AtomicReferenceFieldUpdater from BufferedInputStream with Unsafe

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: