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

Quelle  bug-2031035.js

  Sprache: JAVA
 

// The content zone has a sweep group edge to the atoms zone, placing the
// content zone in an earlier sweep group. A reverse edge (atoms -> content) is
// only added when gcWeakMapsMayHaveSymbolKeys_ is true. If a symbol key is
// added to a WeakMap after sweep groups are formed but before the zone's
// WeakMaps are swept, the atoms zone is still in a marking state when the
// symbol edge is traced during sweeping.

gczeal(0);

var wms = [];
var keys = [];
for (var i = 0; i < 1; i++) {
  var wm = new WeakMap();
  var k = {};
  wm.set(k, {data: 1});
  wms.push(wm);
  keys.push(k);
}

startgc(1);

while (gcstate() !== "NotActive") {
  // When the overall GC is in the Sweep phase but our zone is still in
  // MarkBlackAndGray, sweep groups have been formed but WeakMaps have not
  // been swept yet. Adding a symbol key here sets the zone flag too late
  // for sweep group edge computation.
  if (gcstate() === "Sweep" && gcstate(wms[0]) === "MarkBlackAndGray") {
    wms[0].set(Symbol(), 0);
  }
  gcslice(5);
}

Messung V0.5 in Prozent
C=68 H=56 G=62

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