Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  bug-2013561.js

  Sprache: JAVA
 

// Disable gczeal if available (debug builds have it, asan/release don't)
gczeal(0);

// Enable per-zone GC
gcparam('perZoneGCEnabled'1);

// Create uncollected zone with gray root holding a symbol
var z2 = newGlobal({newCompartment: true});
z2.evaluate(`
  function storeGray(s) {
    var o = {};
    o[s] = 1;
    grayRoot().push(o);
  }
`);

// Create WeakMap in main zone
var wm = new WeakMap();

// Create symbol and value in a function scope to avoid stack scanning
function setup() {
  var s = Symbol("key");
  z2.storeGray(s);
  var val = {data: new ArrayBuffer(256)};
  wm.set(s, val);
  // s and val go out of scope when function returns
}
setup();

// Full GCs to establish gray state and refine bitmaps
// After these GCs, the symbol is gray in z2's bitmap (gray-only after refinement)
gc();
gc();

// Zone GC: collect main zone + atoms, leave z2 uncollected
schedulezone(this);
schedulezone('atoms');
startgc(1);
while (gcstate() === 'Prepare') { gcslice(10); }
finishgc();

gc();

Messung V0.5 in Prozent
C=83 H=80 G=81

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002