Java Code Examples for sun.jvm.hotspot.oops.Oop#getHandle()

The following examples show how to use sun.jvm.hotspot.oops.Oop#getHandle() . 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: HeapHistogramVisitor.java    From vjtools with Apache License 2.0 5 votes vote down vote up
private Place getCmsLocation(Oop obj) {
	OopHandle handle = obj.getHandle();

	if (cmsEden.contains(handle)) {
		return Place.InEden;
	}
	if (cmsOld.contains(handle)) {
		return Place.InOld;
	}
	if (cmsSur.contains(handle)) {
		return Place.InSurvivor;
	}

	return Place.Unknown;
}
 
Example 2
Source File: HeapHistogramVisitor.java    From vjtools with Apache License 2.0 5 votes vote down vote up
public Place getParLocation(Oop obj) {
	OopHandle handle = obj.getHandle();

	if (parEden.contains(handle)) {
		return Place.InEden;
	}
	if (parOld.isIn(handle)) {
		return Place.InOld;
	}
	if (parSur.contains(handle)) {
		return Place.InSurvivor;
	}

	return Place.Unknown;
}
 
Example 3
Source File: HeapHistogramVisitor.java    From vjtools with Apache License 2.0 5 votes vote down vote up
private Place getCmsLocation(Oop obj) {
	OopHandle handle = obj.getHandle();

	if (cmsEden.contains(handle)) {
		return Place.InEden;
	}
	if (cmsOld.isIn(handle)) {
		return Place.InOld;
	}
	if (cmsSur.contains(handle)) {
		return Place.InSurvivor;
	}

	return Place.Unknown;
}
 
Example 4
Source File: HeapHistogramVisitor.java    From vjtools with Apache License 2.0 5 votes vote down vote up
public Place getParLocation(Oop obj) {
	OopHandle handle = obj.getHandle();

	if (parEden.contains(handle)) {
		return Place.InEden;
	}
	if (parOld.isIn(handle)) {
		return Place.InOld;
	}
	if (parSur.contains(handle)) {
		return Place.InSurvivor;
	}

	return Place.Unknown;
}
 
Example 5
Source File: LoadedClassAccessor.java    From vjtools with Apache License 2.0 4 votes vote down vote up
private static String getClassLoaderOopFrom(InstanceKlass klass) {
	Oop loader = klass.getClassLoader();
	return loader != null ? getClassNameFrom((InstanceKlass) loader.getKlass()) + " @ " + loader.getHandle()
			: "<bootstrap>";
}
 
Example 6
Source File: LoadedClassAccessor.java    From vjtools with Apache License 2.0 4 votes vote down vote up
private static String getClassLoaderOopFrom(InstanceKlass klass) {
	Oop loader = klass.getClassLoader();
	return loader != null ? getClassNameFrom((InstanceKlass) loader.getKlass()) + " @ " + loader.getHandle()
			: "<bootstrap>";
}