Update to the latest chronicle-bom

This commit is contained in:
leventov
2015-10-22 00:18:31 +03:00
parent a13bf449d0
commit 4c04a942f7
2 changed files with 30 additions and 1 deletions
@@ -18,6 +18,7 @@ package net.openhft.chronicle.hash.impl;
import net.openhft.chronicle.bytes.BytesStore;
import net.openhft.chronicle.bytes.RandomDataInput;
import net.openhft.chronicle.core.OS;
import net.openhft.lang.io.Bytes;
import java.nio.ByteBuffer;
@@ -144,6 +145,34 @@ public class JavaLangBytesReusableBytesStore
return this;
}
@Override
public JavaLangBytesReusableBytesStore writeVolatileByte(long offset, byte i8) {
OS.memory().storeFence();
bytes.writeByte(offset, i8);
return this;
}
@Override
public JavaLangBytesReusableBytesStore writeVolatileShort(long offset, short i16) {
OS.memory().storeFence();
bytes.writeShort(offset, i16);
return this;
}
@Override
public JavaLangBytesReusableBytesStore writeVolatileInt(long offset, int i32) {
OS.memory().storeFence();
bytes.writeInt(offset, i32);
return this;
}
@Override
public JavaLangBytesReusableBytesStore writeVolatileLong(long offset, long i64) {
OS.memory().storeFence();
bytes.writeLong(offset, i64);
return this;
}
@Override
public JavaLangBytesReusableBytesStore write(long offsetInRDO,
byte[] bs, int offset, int length) {