Java Code Examples for sun.jvm.hotspot.oops.InstanceKlass#getSubklassKlass()
The following examples show how to use
sun.jvm.hotspot.oops.InstanceKlass#getSubklassKlass() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VirtualMachineImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public List/*<ObjectReference>*/ objectsByType(ReferenceType type, boolean includeSubtypes) { Klass kls = ((ReferenceTypeImpl)type).ref(); if (kls instanceof InstanceKlass) { InstanceKlass ik = (InstanceKlass) kls; // if the Klass is final or if there are no subklasses loaded yet if (ik.getAccessFlagsObj().isFinal() || ik.getSubklassKlass() == null) { includeSubtypes = false; } } else { // no subtypes for primitive array types ArrayTypeImpl arrayType = (ArrayTypeImpl) type; try { Type componentType = arrayType.componentType(); if (componentType instanceof PrimitiveType) { includeSubtypes = false; } } catch (ClassNotLoadedException cnle) { // ignore. component type not yet loaded } } if (includeSubtypes) { return objectsBySubType(type); } else { return objectsByExactType(type); } }
Example 2
Source File: VirtualMachineImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public List/*<ObjectReference>*/ objectsByType(ReferenceType type, boolean includeSubtypes) { Klass kls = ((ReferenceTypeImpl)type).ref(); if (kls instanceof InstanceKlass) { InstanceKlass ik = (InstanceKlass) kls; // if the Klass is final or if there are no subklasses loaded yet if (ik.getAccessFlagsObj().isFinal() || ik.getSubklassKlass() == null) { includeSubtypes = false; } } else { // no subtypes for primitive array types ArrayTypeImpl arrayType = (ArrayTypeImpl) type; try { Type componentType = arrayType.componentType(); if (componentType instanceof PrimitiveType) { includeSubtypes = false; } } catch (ClassNotLoadedException cnle) { // ignore. component type not yet loaded } } if (includeSubtypes) { return objectsBySubType(type); } else { return objectsByExactType(type); } }
Example 3
Source File: VirtualMachineImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public List/*<ObjectReference>*/ objectsByType(ReferenceType type, boolean includeSubtypes) { Klass kls = ((ReferenceTypeImpl)type).ref(); if (kls instanceof InstanceKlass) { InstanceKlass ik = (InstanceKlass) kls; // if the Klass is final or if there are no subklasses loaded yet if (ik.getAccessFlagsObj().isFinal() || ik.getSubklassKlass() == null) { includeSubtypes = false; } } else { // no subtypes for primitive array types ArrayTypeImpl arrayType = (ArrayTypeImpl) type; try { Type componentType = arrayType.componentType(); if (componentType instanceof PrimitiveType) { includeSubtypes = false; } } catch (ClassNotLoadedException cnle) { // ignore. component type not yet loaded } } if (includeSubtypes) { return objectsBySubType(type); } else { return objectsByExactType(type); } }
Example 4
Source File: VirtualMachineImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public List/*<ObjectReference>*/ objectsByType(ReferenceType type, boolean includeSubtypes) { Klass kls = ((ReferenceTypeImpl)type).ref(); if (kls instanceof InstanceKlass) { InstanceKlass ik = (InstanceKlass) kls; // if the Klass is final or if there are no subklasses loaded yet if (ik.getAccessFlagsObj().isFinal() || ik.getSubklassKlass() == null) { includeSubtypes = false; } } else { // no subtypes for primitive array types ArrayTypeImpl arrayType = (ArrayTypeImpl) type; try { Type componentType = arrayType.componentType(); if (componentType instanceof PrimitiveType) { includeSubtypes = false; } } catch (ClassNotLoadedException cnle) { // ignore. component type not yet loaded } } if (includeSubtypes) { return objectsBySubType(type); } else { return objectsByExactType(type); } }
Example 5
Source File: VirtualMachineImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public List/*<ObjectReference>*/ objectsByType(ReferenceType type, boolean includeSubtypes) { Klass kls = ((ReferenceTypeImpl)type).ref(); if (kls instanceof InstanceKlass) { InstanceKlass ik = (InstanceKlass) kls; // if the Klass is final or if there are no subklasses loaded yet if (ik.getAccessFlagsObj().isFinal() || ik.getSubklassKlass() == null) { includeSubtypes = false; } } else { // no subtypes for primitive array types ArrayTypeImpl arrayType = (ArrayTypeImpl) type; try { Type componentType = arrayType.componentType(); if (componentType instanceof PrimitiveType) { includeSubtypes = false; } } catch (ClassNotLoadedException cnle) { // ignore. component type not yet loaded } } if (includeSubtypes) { return objectsBySubType(type); } else { return objectsByExactType(type); } }
Example 6
Source File: VirtualMachineImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public List/*<ObjectReference>*/ objectsByType(ReferenceType type, boolean includeSubtypes) { Klass kls = ((ReferenceTypeImpl)type).ref(); if (kls instanceof InstanceKlass) { InstanceKlass ik = (InstanceKlass) kls; // if the Klass is final or if there are no subklasses loaded yet if (ik.getAccessFlagsObj().isFinal() || ik.getSubklassKlass() == null) { includeSubtypes = false; } } else { // no subtypes for primitive array types ArrayTypeImpl arrayType = (ArrayTypeImpl) type; try { Type componentType = arrayType.componentType(); if (componentType instanceof PrimitiveType) { includeSubtypes = false; } } catch (ClassNotLoadedException cnle) { // ignore. component type not yet loaded } } if (includeSubtypes) { return objectsBySubType(type); } else { return objectsByExactType(type); } }
Example 7
Source File: VirtualMachineImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public List/*<ObjectReference>*/ objectsByType(ReferenceType type, boolean includeSubtypes) { Klass kls = ((ReferenceTypeImpl)type).ref(); if (kls instanceof InstanceKlass) { InstanceKlass ik = (InstanceKlass) kls; // if the Klass is final or if there are no subklasses loaded yet if (ik.getAccessFlagsObj().isFinal() || ik.getSubklassKlass() == null) { includeSubtypes = false; } } else { // no subtypes for primitive array types ArrayTypeImpl arrayType = (ArrayTypeImpl) type; try { Type componentType = arrayType.componentType(); if (componentType instanceof PrimitiveType) { includeSubtypes = false; } } catch (ClassNotLoadedException cnle) { // ignore. component type not yet loaded } } if (includeSubtypes) { return objectsBySubType(type); } else { return objectsByExactType(type); } }