Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  bug-1994871.js

  Sprache: JAVA
 

// Check that atom marking bitmap state and mark color is as expected and
// AtomMarkingRuntime::refineZoneBitmapsForCollectedZones works with gray
// symbols.

gczeal(0);

// We'll track the state of a symbol in two zones, |this| and |other|.
let s = Symbol();
addMarkObservers([s]);
let other = newGlobal({newCompartment: true});

// Iniitally we expect the symbol to be marked black in |this| and not marked
// in |other|.
gc();
let index = getAtomMarkIndex(s);
assertEq(getAtomMarkColor(this, index), 'black');
assertEq(getAtomMarkColor(other, index), 'white');
assertEq(getMarks()[0], 'black');

// Referencing the symbol in |other| marks it in that zone.
other.s = s;
assertEq(getAtomMarkColor(other, index), 'black');

// Replace existing references with a gray reference from |this| and remove
// the reference from |other|. We now expect the mark color to be gray in
// *both* zones.
grayRoot().push(s);
other.s = undefined;
s = undefined;
gc();
assertEq(getAtomMarkColor(this, index), 'gray');
assertEq(getAtomMarkColor(other, index), 'gray'); 
assertEq(getMarks()[0], 'gray');

// Removing the final reference results in the mark color going to white.
grayRoot().length = 0;
gc();
assertEq(getAtomMarkColor(this, index), 'white');
assertEq(getAtomMarkColor(other, index), 'white');
assertEq(getMarks()[0], 'dead');

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

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