// Note that it's ART specific to emit the length. if (exceptionMessage.contains("length")) { if (!exceptionMessage.contains("length=1")) { thrownew Error("Wrong length in exception message: " + exceptionMessage);
}
}
// Note that it's ART specific to emit the index. if (exceptionMessage.contains("index")) { if (!exceptionMessage.contains("index=2")) { thrownew Error("Wrong index in exception message");
}
}
}
staticvoid $opt$Throw(int[] array) { // We fetch the length first, to ensure it is in EAX (on x86). // The pThrowArrayBounds entrypoint expects the index in EAX and the // length in ECX, and the optimizing compiler used to write to EAX // before putting the length in ECX. int length = array.length;
array[2] = 42;
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-29)
¤
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.