本文整理汇总了Java中sun.jvm.hotspot.oops.TypeArray类的典型用法代码示例。如果您正苦于以下问题:Java TypeArray类的具体用法?Java TypeArray怎么用?Java TypeArray使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TypeArray类属于sun.jvm.hotspot.oops包,在下文中一共展示了TypeArray类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: doOop
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
@Override
public void doOop(OopField field, boolean isVMField) {
if (field.getID().getName().equals("key")) {
TypeArray array = (TypeArray) field.getValue(getObj());
long length = array.getLength();
for (long i = 0; i < length; i++) {
System.out.printf("%02x", array.getByteAt(i));
}
}
}
开发者ID:odnoklassniki,项目名称:stack-traces-heap-dumps,代码行数:12,代码来源:KeyPrinter.java
示例2: writePrimitiveArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
protected void writePrimitiveArray(TypeArray array) throws IOException {
out.writeByte((byte) HPROF_GC_PRIM_ARRAY_DUMP);
writeObjectID(array);
out.writeInt(DUMMY_STACK_TRACE_ID);
out.writeInt((int) array.getLength());
TypeArrayKlass tak = (TypeArrayKlass) array.getKlass();
final int type = (int) tak.getElementType();
out.writeByte((byte) type);
switch (type) {
case TypeArrayKlass.T_BOOLEAN:
writeBooleanArray(array);
break;
case TypeArrayKlass.T_CHAR:
writeCharArray(array);
break;
case TypeArrayKlass.T_FLOAT:
writeFloatArray(array);
break;
case TypeArrayKlass.T_DOUBLE:
writeDoubleArray(array);
break;
case TypeArrayKlass.T_BYTE:
writeByteArray(array);
break;
case TypeArrayKlass.T_SHORT:
writeShortArray(array);
break;
case TypeArrayKlass.T_INT:
writeIntArray(array);
break;
case TypeArrayKlass.T_LONG:
writeLongArray(array);
break;
default:
throw new RuntimeException("should not reach here");
}
}
开发者ID:geoff-addepar,项目名称:heap-dump,代码行数:38,代码来源:HeapHprofBinWriter.java
示例3: writeBooleanArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
private void writeBooleanArray(TypeArray array) throws IOException {
final int length = (int) array.getLength();
for (int index = 0; index < length; index++) {
long offset = BOOLEAN_BASE_OFFSET + index * BOOLEAN_SIZE;
out.writeBoolean(array.getHandle().getJBooleanAt(offset));
}
}
开发者ID:geoff-addepar,项目名称:heap-dump,代码行数:8,代码来源:HeapHprofBinWriter.java
示例4: writeByteArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
private void writeByteArray(TypeArray array) throws IOException {
final int length = (int) array.getLength();
for (int index = 0; index < length; index++) {
long offset = BYTE_BASE_OFFSET + index * BYTE_SIZE;
out.writeByte(array.getHandle().getJByteAt(offset));
}
}
开发者ID:geoff-addepar,项目名称:heap-dump,代码行数:8,代码来源:HeapHprofBinWriter.java
示例5: writeShortArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
private void writeShortArray(TypeArray array) throws IOException {
final int length = (int) array.getLength();
for (int index = 0; index < length; index++) {
long offset = SHORT_BASE_OFFSET + index * SHORT_SIZE;
out.writeShort(array.getHandle().getJShortAt(offset));
}
}
开发者ID:geoff-addepar,项目名称:heap-dump,代码行数:8,代码来源:HeapHprofBinWriter.java
示例6: writeIntArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
private void writeIntArray(TypeArray array) throws IOException {
final int length = (int) array.getLength();
for (int index = 0; index < length; index++) {
long offset = INT_BASE_OFFSET + index * INT_SIZE;
out.writeInt(array.getHandle().getJIntAt(offset));
}
}
开发者ID:geoff-addepar,项目名称:heap-dump,代码行数:8,代码来源:HeapHprofBinWriter.java
示例7: writeLongArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
private void writeLongArray(TypeArray array) throws IOException {
final int length = (int) array.getLength();
for (int index = 0; index < length; index++) {
long offset = LONG_BASE_OFFSET + index * LONG_SIZE;
out.writeLong(array.getHandle().getJLongAt(offset));
}
}
开发者ID:geoff-addepar,项目名称:heap-dump,代码行数:8,代码来源:HeapHprofBinWriter.java
示例8: writeCharArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
private void writeCharArray(TypeArray array) throws IOException {
final int length = (int) array.getLength();
for (int index = 0; index < length; index++) {
long offset = CHAR_BASE_OFFSET + index * CHAR_SIZE;
out.writeChar(array.getHandle().getJCharAt(offset));
}
}
开发者ID:geoff-addepar,项目名称:heap-dump,代码行数:8,代码来源:HeapHprofBinWriter.java
示例9: writeFloatArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
private void writeFloatArray(TypeArray array) throws IOException {
final int length = (int) array.getLength();
for (int index = 0; index < length; index++) {
long offset = FLOAT_BASE_OFFSET + index * FLOAT_SIZE;
out.writeFloat(array.getHandle().getJFloatAt(offset));
}
}
开发者ID:geoff-addepar,项目名称:heap-dump,代码行数:8,代码来源:HeapHprofBinWriter.java
示例10: writeDoubleArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
private void writeDoubleArray(TypeArray array) throws IOException {
final int length = (int) array.getLength();
for (int index = 0; index < length; index++) {
long offset = DOUBLE_BASE_OFFSET + index * DOUBLE_SIZE;
out.writeDouble(array.getHandle().getJDoubleAt(offset));
}
}
开发者ID:geoff-addepar,项目名称:heap-dump,代码行数:8,代码来源:HeapHprofBinWriter.java
示例11: getTypeArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
public final TypeArray getTypeArray() {
return (TypeArray) getArray();
}
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:4,代码来源:JSJavaTypeArray.java
示例12: JSJavaTypeArray
import sun.jvm.hotspot.oops.TypeArray; //导入依赖的package包/类
public JSJavaTypeArray(TypeArray array, JSJavaFactory fac) {
super(array, fac);
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:4,代码来源:JSJavaTypeArray.java
注:本文中的sun.jvm.hotspot.oops.TypeArray类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论