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

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

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

Unsafe.getDoubleVolatile介绍

[英]Volatile version of #getDouble(Object,long)
[中]#getDouble的易失性版本(对象,长)

代码示例

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

@Override
public double getDoubleVolatile(long byteIndex) {
  return unsafe.getDoubleVolatile(base, off + byteIndex);
}

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

@Override
public double getDoubleVolatile(long byteIndex) {
  return unsafe.getDoubleVolatile(null, baseAdress + byteIndex);
}

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

public static double getDoubleVolatile( Object obj, long offset )
{
  return unsafe.getDoubleVolatile( obj, offset );
}

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

@Override
public double getDoubleVolatile(long byteIndex) {
  return unsafe.getDoubleVolatile(null, baseAdress + byteIndex);
}

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

@Override
public double getDoubleVolatile(long byteIndex) {
  return unsafe.getDoubleVolatile(base, off + byteIndex);
}

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

public double getDoubleVolatile(Object target, long offset) {
  return unsafe.getDoubleVolatile(target, offset);
}

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

public double getDoubleVolatile(Object target, long offset) {
  return unsafe.getDoubleVolatile(target, offset);
}

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

public static double getDoubleVolatile( long address )
{
  checkAccess( address, Double.BYTES );
  return unsafe.getDoubleVolatile( null, address );
}

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

public Object getProperty(Object obj) {
  return theUnsafe.getDoubleVolatile(obj, offset);
}

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

@Override
  public double getDouble( Object obj ) {
    return unsafe.getDoubleVolatile( obj, offset );
  }
}

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

@Override
  public double getDouble( Object obj ) {
    return unsafe.getDoubleVolatile( obj, offset );
  }
}

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

@Override
  public double getDouble( Object obj ) {
    return unsafe.getDoubleVolatile( obj, offset );
  }
}

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

@Override
public double getDoubleVolatile(Object base, long offset) {
  AlignmentUtil.check8BytesAligned(offset);
  return UNSAFE.getDoubleVolatile(base, offset);
}

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

@Override
public double getDoubleVolatile(Object base, long offset) {
  AlignmentUtil.check8BytesAligned(offset);
  return UNSAFE.getDoubleVolatile(base, offset);
}

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

@Override
@ForceInline
public double readVolatileDouble(@NotNull Object object, long offset) {
  if (object == null)
    throw new NullPointerException();
  return UNSAFE.getDoubleVolatile(object, offset);
}

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

@Override
@ForceInline
public double readVolatileDouble(long address) {
  // TODO add support for a double split across cache lines.
  return UNSAFE.getDoubleVolatile(null, address);
}

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

@Override
public double getDoubleVolatile(long address) {
  AlignmentUtil.check8BytesAligned(address);
  return UNSAFE.getDoubleVolatile(null, address);
}

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

@Override
@ForceInline
public double readVolatileDouble(long address) {
  // TODO add support for a double split across cache lines.
  return UNSAFE.getDoubleVolatile(null, address);
}

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

@Override
@ForceInline
public double readVolatileDouble(@NotNull Object object, long offset) {
  if (object == null)
    throw new NullPointerException();
  return UNSAFE.getDoubleVolatile(object, offset);
}

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

@Override
public double getDoubleVolatile(long address) {
  AlignmentUtil.check8BytesAligned(address);
  return UNSAFE.getDoubleVolatile(null, address);
}

相关文章

Unsafe类方法