Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/gc/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 890 B image not shown  

Quelle  nondedup-erasure.js   Sprache: JAVA

 
gczeal(0);

function address(s) {
  return JSON.parse(stringRepresentation(s)).address;
}

// Create a nursery string to deduplicate the test string to.
var dedup_to = newString("abcdefghijklmnopqrstuvwxyz01", {
  tenured: false,
  capacity: 28,
});

// ...and make it be processed first during a minorgc by putting something in the store buffer that points to it.
var look_at_me_first = newDependentString(dedup_to, 3, { tenured: true });

var orig_owner = newString("abcdefghijklmnopqrstuvwxyz", {
  capacity: 4000,
  tenured: true,
});
var trouble_dep = newDependentString(orig_owner, 1, { tenured: true });
var inner_rope = newRope(orig_owner, "0");
var flattened_inner_rope = ensureLinearString(inner_rope);

var outer_rope = newRope(flattened_inner_rope, "1");
var flattened_outer_rope = ensureLinearString(outer_rope);

minorgc();
assertEq(trouble_dep, "bcdefghijklmnopqrstuvwxyz");

Messung V0.5
C=93 H=100 G=96

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.