publicclass Main { publicstaticvoid main(String[] args) {
$opt$TestSlowPath();
}
publicstaticvoid $opt$TestSlowPath() {
Object[] o = bar();
assertEquals(0, o.length); // The slowpath of the instanceof requires the live register // holding `o` to be saved before going into runtime. The linear // scan register allocator used to miscompute the number of // live registers at a safepoint, so the place at which the register // was saved was wrong.
doCall(o instanceofInterface[], o);
}
publicstaticvoid assertEquals(int a, int b) {} publicstaticboolean doCall(boolean val, Object o) { return val; }
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.