Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
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.
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
- relates to
-
JDK-8301086 jdk/internal/util/ByteArray/ReadWriteValues.java fails with CompilationError
-
- Closed
-