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

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

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

Unsafe.getBooleanVolatile介绍

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

代码示例

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

public static boolean getBooleanVolatile( Object obj, long offset )
{
  return unsafe.getBooleanVolatile( obj, offset );
}

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

public boolean getBooleanVolatile(Object target, long offset) {
  return unsafe.getBooleanVolatile(target, offset);
}

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

public boolean getBooleanVolatile(Object target, long offset) {
  return unsafe.getBooleanVolatile(target, offset);
}

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

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

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

@Override
  public boolean getBoolean( Object obj ) {
    return unsafe.getBooleanVolatile( obj, offset );
  }
}

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

@Override
  public boolean getBoolean( Object obj ) {
    return unsafe.getBooleanVolatile( obj, offset );
  }
}

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

@Override
public boolean getBooleanVolatile(long address) {
  return UNSAFE.getBooleanVolatile(null, address);
}

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

@Override
public boolean getBooleanVolatile(long address) {
  return UNSAFE.getBooleanVolatile(null, address);
}

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

@Override
public boolean getBooleanVolatile(Object base, long offset) {
  return UNSAFE.getBooleanVolatile(base, offset);
}

代码示例来源:origin: peptos/traffic-shm

public static boolean getBooleanVolatile(Object object, long offset) {
  return unsafe.getBooleanVolatile(object, offset);
}

代码示例来源:origin: io.fastjson/boon

@Override
  public boolean getBoolean( Object obj ) {
    return unsafe.getBooleanVolatile( obj, offset );
  }
}

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

@Override
public boolean getBooleanVolatile(Object base, long offset) {
  return UNSAFE.getBooleanVolatile(base, offset);
}

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

@Override
  public boolean getBoolean( Object obj ) {
    return unsafe.getBooleanVolatile( obj, offset );
  }
}

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

@Override
  public boolean getBoolean( Object obj ) {
    return unsafe.getBooleanVolatile( obj, offset );
  }
}

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

@Override
public boolean getBooleanVolatile(Object base, long offset) {
  return UNSAFE.getBooleanVolatile(base, offset);
}

代码示例来源:origin: com.tomitribe.tribestream/tribestream-metrics-bytecode

public static boolean getBooleanVolatile(final Object o, final long offset) {
  return UNSAFE.getBooleanVolatile(o, offset);
}

代码示例来源:origin: serkan-ozal/mysafe

@Override
public boolean getBooleanVolatile(Unsafe unsafe, Object o, long offset) {
  return unsafe.getBooleanVolatile(o, offset);
}

代码示例来源:origin: biezhi/anima

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

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

@Override
public boolean getBooleanVolatile(long address) {
  return UNSAFE.getBooleanVolatile(null, address);
}

代码示例来源:origin: mercyblitz/confucius-commons

/**
 * 获取指定对象字段的boolean值
 *
 * @param object
 *         对象
 * @param fieldName
 *         字段名称
 * @return boolean值
 */
public static boolean getBooleanVolatile(Object object, String fieldName) {
  long offset = getObjectFieldOffset(object, fieldName);
  return unsafe.getBooleanVolatile(object, offset);
}

相关文章

Unsafe类方法