publicstaticvoid main(String args[]) { // Run long enough to trigger an OSR for(int j = 200000; j != 0; j--) {
}
// This must reference a field
i1 = i2;
// The resource leak is roughly proportional to this initial value for(int k = Integer.MAX_VALUE - 1; k != 0; k--) { // Make sure the body does some work if(i2 > i3)i1 = k; if (k <= limit) break;
}
}
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.