There are several native methods in ObjectInputStream and ObjectOutputStream:
ObjectInputStream.bytesToFloats
ObjectInputStream.bytesToDoubles
ObjectOutputStream.floatsToBytes
ObjectOutputStream.doublesToBytes
Each of these method has a comment of the following form near the native method declaration in the corresponding .java file:
// REMIND: remove once hotspot inlines Float.intBitsToFloat
The methods
Float.floatToIntBits
Float.intBitsToFloat
Double.doubleToLongBits
Double.longBitsToDouble
are all annotated with @HotSpotIntrinsicCandidate so this might indicate that the "inlining" being awaited in the comment has been fulfilled. If so, the serialization native methods can be removed.