Commit 6ca52421957 for nodejs

commit 6ca52421957fa1622459183420db2cae6c501e94
Author: Joyee Cheung <joyeec9h3@gmail.com>
Date:   Fri Dec 4 16:30:23 2026 +0100

    test: remove tests that assert existence of minor mark-sweep

    This depends on V8 to actually issue a minor mark-sweep which is
    deprecated.

    Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
    PR-URL: https://github.com/nodejs/node/pull/67970
    Refs: https://chromium-review.googlesource.com/c/v8/v8/+/8879493
    Reviewed-By: Richard Lau <richard.lau@ibm.com>
    Reviewed-By: Tierney Cyren <hello@bnb.im>
    Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>

diff --git a/test/parallel/test-performance-gc-minor-ms.js b/test/parallel/test-performance-gc-minor-ms.js
deleted file mode 100644
index 322d22c6b00..00000000000
--- a/test/parallel/test-performance-gc-minor-ms.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// Flags: --expose-gc --no-warnings --minor-ms
-'use strict';
-
-// When V8's Minor Mark-Sweep collector is enabled (--minor-ms), minor garbage
-// collections are reported with kind NODE_PERFORMANCE_GC_MINOR_MARK_SWEEP
-// rather than NODE_PERFORMANCE_GC_MINOR.
-
-const common = require('../common');
-const assert = require('assert');
-const { gcUntil } = require('../common/gc');
-const {
-  PerformanceObserver,
-  constants
-} = require('perf_hooks');
-
-const {
-  NODE_PERFORMANCE_GC_MINOR_MARK_SWEEP
-} = constants;
-
-let observed = false;
-const obs = new PerformanceObserver(common.mustCallAtLeast((list) => {
-  for (const entry of list.getEntries()) {
-    // Other GC kinds (e.g. a scheduled or incremental GC) may be observed in
-    // between; only the minor mark-sweep entry is relevant here.
-    if (entry.detail.kind === NODE_PERFORMANCE_GC_MINOR_MARK_SWEEP) {
-      assert.strictEqual(entry.name, 'gc');
-      assert.strictEqual(entry.entryType, 'gc');
-      observed = true;
-      obs.disconnect();
-      return;
-    }
-  }
-}));
-obs.observe({ entryTypes: ['gc'] });
-
-gcUntil('minor gc event', () => observed, 10, { type: 'minor' });
diff --git a/test/parallel/test-v8-collect-gc-profile-minor-ms.js b/test/parallel/test-v8-collect-gc-profile-minor-ms.js
deleted file mode 100644
index 848caeb733a..00000000000
--- a/test/parallel/test-v8-collect-gc-profile-minor-ms.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// Flags: --expose-gc --minor-ms
-'use strict';
-
-require('../common');
-const assert = require('assert');
-const { GCProfiler } = require('v8');
-
-const profiler = new GCProfiler();
-profiler.start();
-global.gc({ type: 'minor', execution: 'sync' });
-
-const profile = profiler.stop();
-assert.partialDeepStrictEqual(
-  profile.statistics.map(({ gcType }) => gcType),
-  ['MinorMarkSweep'],
-);