Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/tests/non262/extensions/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 800 B image not shown  

Quelle  clone-sab.js   Sprache: JAVA

 

// |reftest| skip-if(!xulRuntime.shell)
/*
 * Any copyright is dedicated to the Public Domain.
 * https://creativecommons.org/publicdomain/zero/1.0/
 */


// Deserialize a serialization buffer containing a reference to a
// SharedArrayBuffer buffer object enough times and we will crash because of a
// reference counting bug.

if (!this.SharedArrayBuffer) {
    reportCompare(true,true);
    quit(0);
}

let x = new SharedArrayBuffer(1);
let y = serialize(x, [], {SharedArrayBuffer: 'allow'});
x = null;

// If the bug is present this loop usually crashes quickly during
// deserialization because the memory has become unmapped.

for (let i=0 ; i < 50 ; i++ ) {
    let obj = deserialize(y, {SharedArrayBuffer: 'allow'});
    let z = new Int8Array(obj);
    z[0] = 0;
}

reportCompare(true, true);


Messung V0.5 in Prozent
C=75 H=80 G=77

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© 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.