Enhanced thread safety tests with the latest lang release

This commit is contained in:
Peter Lawrey
2014-10-27 15:59:22 +00:00
parent 33d37c493f
commit a956ac2a0e
12 changed files with 102 additions and 64 deletions
@@ -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) {