Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/self-hosting/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 924 B image not shown  

Quelle  oom-toplevel.js   Sprache: JAVA

 
// |jit-test| skip-if: !hasFunction.oomAtAllocation

function code(n) {
    return `
        // Trigger top-level execution with an OOM in the middle.
        oomAtAllocation(${n});
        try { getSelfHostedValue("numberFormatCache") } catch (e) { }
        resetOOMFailure();

        // Read current value of "dateTimeFormatCache".
        var initVal = getSelfHostedValue("dateTimeFormatCache");
        assertEq(typeof initVal, "object");

        // Retrigger top-level execution by reading a later value in the file.
        // Then compare that "dateTimeFormatCache" was not clobbered.
        getSelfHostedValue("collatorCache");
        assertEq(initVal, getSelfHostedValue("dateTimeFormatCache"));
        `;
}

// We cannot use `oomTest` here because of divergence issues from things like
// `RegisterShapeCache` absorbing OOMs.
for (var i = 1; i < 300; ++i) {
    evaluate(code(i), { global: newGlobal() });
}

Messung V0.5
C=97 H=99 G=97

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.