Avoid early initialization of java.nio.Bits

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: None
    • Component/s: core-libs
    • b10

      java.nio.Bits is currently initialized when setting up the System.in/out PrintStreams in System.initPhase1, but it doesn't have to be:

      - Bits.unsafe() can be replaced by direct use of Unsafe.getUnsafe();
      - Bits.byteOrder() can be removed, and the read of platform native ByteOrder moved to... ByteOrder

      This brings a small reduction of class loading during System.initPhase1 (-4 classes)

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

              Created:
              Updated:
              Resolved: