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

The following examples show how to use sun.jvm.hotspot.oops.Oop#getKlass() . 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 6 votes vote down vote up
@Override
public boolean doObj(Oop obj) {
	Klass klass = obj.getKlass();

	ClassStats classStats = HeapUtils.getClassStats(klass, classStatsMap);
	Place place = isCms ? getCmsLocation(obj) : getParLocation(obj);
	long objSize = obj.getObjectSize();

	updateWith(classStats, objSize, place);

	// 每完成1% 打印一个.,每完成10% 打印百分比提示
	progressNodifier.processingSize += objSize;
	if (progressNodifier.processingSize > progressNodifier.nextNotificationSize) {
		progressNodifier.printProgress();
	}

	return false;
}
 
Example 2
Source File: CommandProcessor.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
void printOopValue(Oop oop) {
    if (oop != null) {
        Klass k = oop.getKlass();
        Symbol s = k.getName();
        if (s != null) {
            out.print("Oop for " + s.asString() + " @ ");
        } else {
            out.print("Oop @ ");
        }
        Oop.printOopAddressOn(oop, out);
    } else {
        out.print("null");
    }
}
 
Example 3
Source File: CommandProcessor.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
void printOopValue(Oop oop) {
    if (oop != null) {
        Klass k = oop.getKlass();
        Symbol s = k.getName();
        if (s != null) {
            out.print("Oop for " + s.asString() + " @ ");
        } else {
            out.print("Oop @ ");
        }
        Oop.printOopAddressOn(oop, out);
    } else {
        out.print("null");
    }
}
 
Example 4
Source File: CommandProcessor.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
void printOopValue(Oop oop) {
    if (oop != null) {
        Klass k = oop.getKlass();
        Symbol s = k.getName();
        if (s != null) {
            out.print("Oop for " + s.asString() + " @ ");
        } else {
            out.print("Oop @ ");
        }
        Oop.printOopAddressOn(oop, out);
    } else {
        out.print("null");
    }
}
 
Example 5
Source File: CommandProcessor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
void printOopValue(Oop oop) {
    if (oop != null) {
        Klass k = oop.getKlass();
        Symbol s = k.getName();
        if (s != null) {
            out.print("Oop for " + s.asString() + " @ ");
        } else {
            out.print("Oop @ ");
        }
        Oop.printOopAddressOn(oop, out);
    } else {
        out.print("null");
    }
}
 
Example 6
Source File: CommandProcessor.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
void printOopValue(Oop oop) {
    if (oop != null) {
        Klass k = oop.getKlass();
        Symbol s = k.getName();
        if (s != null) {
            out.print("Oop for " + s.asString() + " @ ");
        } else {
            out.print("Oop @ ");
        }
        Oop.printOopAddressOn(oop, out);
    } else {
        out.print("null");
    }
}
 
Example 7
Source File: CommandProcessor.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
void printOopValue(Oop oop) {
    if (oop != null) {
        Klass k = oop.getKlass();
        Symbol s = k.getName();
        if (s != null) {
            out.print("Oop for " + s.asString() + " @ ");
        } else {
            out.print("Oop @ ");
        }
        Oop.printOopAddressOn(oop, out);
    } else {
        out.print("null");
    }
}
 
Example 8
Source File: CommandProcessor.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
void printOopValue(Oop oop) {
    if (oop != null) {
        Klass k = oop.getKlass();
        Symbol s = k.getName();
        if (s != null) {
            out.print("Oop for " + s.asString() + " @ ");
        } else {
            out.print("Oop @ ");
        }
        Oop.printOopAddressOn(oop, out);
    } else {
        out.print("null");
    }
}
 
Example 9
Source File: CommandProcessor.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
void printOopValue(Oop oop) {
    if (oop != null) {
        Klass k = oop.getKlass();
        Symbol s = k.getName();
        if (s != null) {
            out.print("Oop for " + s.asString() + " @ ");
        } else {
            out.print("Oop @ ");
        }
        Oop.printOopAddressOn(oop, out);
    } else {
        out.print("null");
    }
}
 
Example 10
Source File: HeapHistogramVisitor.java    From vjtools with Apache License 2.0 4 votes vote down vote up
public boolean doObj(Oop obj) {
	Klass klass = obj.getKlass();

	ClassStats classStats = HeapUtils.getClassStats(klass, classStatsMap);

	Place place = isCms ? getCmsLocation(obj) : getParLocation(obj);

	updateWith(classStats, obj, place);

	if ((processingObject++) == PROCERSSING_DOT_SIZE) {
		System.err.print(".");
		processingObject = 0;
	}

	return false;
}