privatestaticvoid doUnloading() { // Stop the JIT to ensure its threads and work queue are not keeping classes // artifically alive.
stopJit(); // Do multiple GCs to prevent rare flakiness if some other thread is keeping the // classloader live. for (int i = 0; i < 5; ++i) {
Runtime.getRuntime().gc();
}
startJit();
}
publicstaticvoid main(String[] args) throws Exception {
System.loadLibrary(args[0]);
loadClass();
doUnloading(); // fetchProfiles iterate over the ProfilingInfo, we used to crash in the presence // of unloaded copied methods.
fetchProfiles();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.