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

Reimplement java.io.Bits using VarHandle access

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: