Hey guys,

while having a look how to implement the Lightning Serializer
adapter I recognized that maybe the current implementation of the
KryoSerializer and maybe some more could be absolutely thread unsafe.

    private final byte[] buffer = new byte[ BUFFER_SIZE ];
    private final Output output = new Output( buffer, -1 );
    private final Input input = new Input( buffer );

Only one byte[] buffer is used for serialization and
deserialization. Is somewhere deep in DM an instantiater hidden that
generates new instances of the serializer or will there be a problem
if different threads read / write at the same time?

Cheers Chris

Reply via email to