mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Enhanced thread safety tests with the latest lang release
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.chronicle.common.serialization.impl.ByteableMarshaller;
|
||||
import net.openhft.lang.io.Bytes;
|
||||
import net.openhft.lang.io.NativeBytes;
|
||||
import net.openhft.lang.io.serialization.BytesMarshaller;
|
||||
@@ -51,7 +52,7 @@ enum ByteableLongValueMarshaller implements BytesMarshaller<LongValue> {
|
||||
if (longValue == null)
|
||||
longValue = (LongValue) NativeBytes.UNSAFE.allocateInstance(DIRECT);
|
||||
Byteable biv = (Byteable) longValue;
|
||||
biv.bytes(bytes, bytes.position());
|
||||
ByteableMarshaller.setBytesAndOffset(biv, bytes);
|
||||
bytes.skip(biv.maxSize());
|
||||
return longValue;
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user