sun.misc.Unsafe.putDoubleVolatile()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中sun.misc.Unsafe.putDoubleVolatile()方法的一些代码示例,展示了Unsafe.putDoubleVolatile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Unsafe.putDoubleVolatile()方法的具体详情如下:
包路径:sun.misc.Unsafe
类名称:Unsafe
方法名:putDoubleVolatile

Unsafe.putDoubleVolatile介绍

[英]Volatile version of #putDouble(Object,long,double)
[中]#putdoull(Object,long,double)的易失性版本

代码示例

代码示例来源:origin: redisson/redisson

@Override
public void putDoubleVolatile(long byteIndex, double d) {
  unsafe.putDoubleVolatile(base, off + byteIndex, d);
}

代码示例来源:origin: redisson/redisson

@Override
public void putDoubleVolatile(long byteIndex, double d) {
  unsafe.putDoubleVolatile(null, baseAdress + byteIndex, d);
}

代码示例来源:origin: neo4j/neo4j

public static void putDoubleVolatile( Object obj, long offset, double value )
{
  unsafe.putDoubleVolatile( obj, offset, value );
}

代码示例来源:origin: RuedigerMoeller/fast-serialization

@Override
public void putDoubleVolatile(long byteIndex, double d) {
  unsafe.putDoubleVolatile(null, baseAdress + byteIndex, d);
}

代码示例来源:origin: RuedigerMoeller/fast-serialization

@Override
public void putDoubleVolatile(long byteIndex, double d) {
  unsafe.putDoubleVolatile(base, off + byteIndex, d);
}

代码示例来源:origin: fengjiachun/Jupiter

public void putDoubleVolatile(Object target, long offset, double value) {
  unsafe.putDoubleVolatile(target, offset, value);
}

代码示例来源:origin: fengjiachun/Jupiter

public void putDoubleVolatile(Object target, long offset, double value) {
  unsafe.putDoubleVolatile(target, offset, value);
}

代码示例来源:origin: neo4j/neo4j

public static void putDoubleVolatile( long address, double value )
{
  checkAccess( address, Double.BYTES );
  unsafe.putDoubleVolatile( null, address, value );
}

代码示例来源:origin: aaberg/sql2o

public void setProperty(Object obj, Object value) {
  if (value == null) return;
  theUnsafe.putDoubleVolatile(obj, offset, ((Number) value).doubleValue());
}

代码示例来源:origin: boonproject/boon

@Override
public void setDouble( Object obj, double value ) {
  unsafe.putDoubleVolatile( obj, offset, value );
}

代码示例来源:origin: boonproject/boon

@Override
public void setDouble( Object obj, double value ) {
  unsafe.putDoubleVolatile( obj, offset, value );
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

@Override
public void setDouble( Object obj, double value ) {
  unsafe.putDoubleVolatile( obj, offset, value );
}

代码示例来源:origin: hazelcast/hazelcast-jet

@Override
public void putDoubleVolatile(Object base, long offset, double x) {
  UNSAFE.putDoubleVolatile(base, offset, x);
}

代码示例来源:origin: org.neo4j/neo4j-unsafe

public static void putDoubleVolatile( Object obj, long offset, double value )
{
  unsafe.putDoubleVolatile( obj, offset, value );
}

代码示例来源:origin: hazelcast/hazelcast-jet

@Override
public void putDoubleVolatile(Object base, long offset, double x) {
  AlignmentUtil.check8BytesAligned(offset);
  UNSAFE.putDoubleVolatile(base, offset, x);
}

代码示例来源:origin: com.hazelcast/hazelcast-all

@Override
public void putDoubleVolatile(Object base, long offset, double x) {
  AlignmentUtil.check8BytesAligned(offset);
  UNSAFE.putDoubleVolatile(base, offset, x);
}

代码示例来源:origin: hazelcast/hazelcast-jet

@Override
public void putDoubleVolatile(long address, double x) {
  AlignmentUtil.check8BytesAligned(address);
  UNSAFE.putDoubleVolatile(null, address, x);
}

代码示例来源:origin: OpenHFT/Chronicle-Core

@Override
@ForceInline
public void writeVolatileDouble(@NotNull Object object, long offset, double d) {
  if (object == null)
    throw new NullPointerException();
  UNSAFE.putDoubleVolatile(object, offset, d);
}

代码示例来源:origin: com.hazelcast/hazelcast-all

@Override
public void putDoubleVolatile(long address, double x) {
  AlignmentUtil.check8BytesAligned(address);
  UNSAFE.putDoubleVolatile(null, address, x);
}

代码示例来源:origin: net.openhft/chronicle-core

@Override
@ForceInline
public void writeVolatileDouble(@NotNull Object object, long offset, double d) {
  if (object == null)
    throw new NullPointerException();
  UNSAFE.putDoubleVolatile(object, offset, d);
}

相关文章

Unsafe类方法