Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/wasm/gc/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 741 B image not shown  

Quelle  bug2041977.js

  Sprache: JAVA
 

// |jit-test| allow-oom

// Test that OOM during wasm array OOL allocation leaves the object in a
// correct state.
// If OOM happens in the middle of OOL creation, the array can be left in an
// inconsistent state (its shape may not yet be initialized, or it could have a
// dangling data pointer). That would make GC trace it incorrectly and
// potentially crash.
const mod = new WebAssembly.Module(wasmTextToBinary(`(module
  (type $arr (array (mut i64)))
  (global (ref null $arr) (array.new_default $arr (i32.const 200)))
)`));

fullcompartmentchecks(true);

for (let y of [ 1,1]) {
  for (let i = 1; i < 100; i++) {
    oomAfterAllocations(i);
    try { new WebAssembly.Instance(mod); } catch(e) {}
    resetOOMFailure();
  }
}

gc();

Messung V0.5 in Prozent
C=71 H=60 G=65

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.