Replace use of AtomicReferenceFieldUpdater from BufferedInputStream with Unsafe

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: