本文整理汇总了Java中sun.jvm.hotspot.oops.JVMDIClassStatus类的典型用法代码示例。如果您正苦于以下问题:Java JVMDIClassStatus类的具体用法?Java JVMDIClassStatus怎么用?Java JVMDIClassStatus使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JVMDIClassStatus类属于sun.jvm.hotspot.oops包,在下文中一共展示了JVMDIClassStatus类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: isPrepared
import sun.jvm.hotspot.oops.JVMDIClassStatus; //导入依赖的package包/类
public boolean isPrepared() {
return (saKlass.getClassStatus() & JVMDIClassStatus.PREPARED) != 0;
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:4,代码来源:ReferenceTypeImpl.java
示例2: isVerified
import sun.jvm.hotspot.oops.JVMDIClassStatus; //导入依赖的package包/类
public boolean isVerified() {
return (saKlass.getClassStatus() & JVMDIClassStatus.VERIFIED) != 0;
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:4,代码来源:ReferenceTypeImpl.java
示例3: isInitialized
import sun.jvm.hotspot.oops.JVMDIClassStatus; //导入依赖的package包/类
public boolean isInitialized() {
return (saKlass.getClassStatus() & JVMDIClassStatus.INITIALIZED) != 0;
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:4,代码来源:ReferenceTypeImpl.java
示例4: failedToInitialize
import sun.jvm.hotspot.oops.JVMDIClassStatus; //导入依赖的package包/类
public boolean failedToInitialize() {
return (saKlass.getClassStatus() & JVMDIClassStatus.ERROR) != 0;
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:4,代码来源:ReferenceTypeImpl.java
示例5: retrieveAllClasses
import sun.jvm.hotspot.oops.JVMDIClassStatus; //导入依赖的package包/类
private void retrieveAllClasses() {
final List saKlasses = new ArrayList();
SystemDictionary.ClassVisitor visitor = new SystemDictionary.ClassVisitor() {
public void visit(Klass k) {
for (Klass l = k; l != null; l = l.arrayKlassOrNull()) {
// for non-array classes filter out un-prepared classes
// refer to 'allClasses' in share/back/VirtualMachineImpl.c
if (l instanceof ArrayKlass) {
saKlasses.add(l);
} else {
int status = l.getClassStatus();
if ((status & JVMDIClassStatus.PREPARED) != 0) {
saKlasses.add(l);
}
}
}
}
};
// refer to jvmtiGetLoadedClasses.cpp - getLoadedClasses in VM code.
// classes from SystemDictionary
saSystemDictionary.classesDo(visitor);
// From SystemDictionary we do not get primitive single
// dimensional array classes. add primitive single dimensional array
// klasses from Universe.
saVM.getUniverse().basicTypeClassesDo(visitor);
// Hold lock during processing to improve performance
// and to have safe check/set of retrievedAllTypes
synchronized (this) {
if (!retrievedAllTypes) {
// Number of classes
int count = saKlasses.size();
for (int ii = 0; ii < count; ii++) {
Klass kk = (Klass)saKlasses.get(ii);
ReferenceTypeImpl type = referenceType(kk);
}
retrievedAllTypes = true;
}
}
}
开发者ID:arodchen,项目名称:MaxSim,代码行数:44,代码来源:VirtualMachineImpl.java
注:本文中的sun.jvm.hotspot.oops.JVMDIClassStatus类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论