Reimplement java.io.Bits using VarHandle access

XMLWordPrintable

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

      Currently, `java.io.Bits` is using explicit logic to read/write various primitive types to/from byte arrays. Switching to the use of VarHandle access would provide better performance and less code.

      Also, using a standard API for these conversions means future VarHandle improvements will benefit Bits too.

      Improvements in Bits will propagate to ObjectInputStream, ObjectOutputStream and RandomAccessFile.

            Assignee:
            Per-Ake Minborg
            Reporter:
            Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: