class Foo { // This method needs to be virtual for the test. Otherwise if it's a static method, // the JIT compiler won't compile while its entrypoint is the resolution stub. void $noinline$hotMethod() { for (int i = 0; i < array.length; ++i) {
array[i] = array;
}
}
static {
array = new Object[10000]; while (!Main.hasJitCompiledEntrypoint(Foo.class, "$noinline$hotMethod")) { new Foo().$noinline$hotMethod(); try { // Sleep to give a chance for the JIT to compile `hotMethod`. Thread.sleep(100);
} catch (Exception e) { // Ignore
}
}
}
staticvoid initialize() {
}
static Object[] array;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 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.