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

Quelle  ExecutionTracer-oom-test.js   Sprache: JAVA

 

if (typeof enableExecutionTracing == "undefined") {
  quit();
}


var g = newGlobal({ newCompartment: true });
var dbg = new Debugger();
dbg.addDebuggee(g);

g.enableExecutionTracing();

oomTest(function () {
  g.eval(`[100].map(function f3(x) { return x; });`);
});

gc();

const trace = g.getExecutionTrace();

g.disableExecutionTracing();

assertEq(trace.length, 1);

const events = trace[0].events;
var err = events.find(e => e.kind == "Error");
// Guaranteeing an error is tricky. We don't have a ton of allocations inside
// the tracer to fail, and so with --ion we tend to get skipped over by
// oomTest's iterative failure logic. Accordingly, we just assert that if
// there is an error, it needs to be the last entry.
if (err) {
  assertEq(err, events[events.length - 1]);
}

Messung V0.5
C=93 H=94 G=93

¤ Dauer der Verarbeitung: 0.14 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.