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 ByteableIntValueMarshaller implements BytesMarshaller<IntValue> {
|
||||
if (intValue == null)
|
||||
intValue = (IntValue) NativeBytes.UNSAFE.allocateInstance(DIRECT);
|
||||
Byteable biv = (Byteable) intValue;
|
||||
biv.bytes(bytes, bytes.position());
|
||||
ByteableMarshaller.setBytesAndOffset(biv, bytes);
|
||||
bytes.skip(biv.maxSize());
|
||||
return intValue;
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user