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

Reimplement java.io.Bits using VarHandle access

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 21
    • None
    • core-libs
    • b06

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: