Title: [295710] trunk/JSTests/stress/array-buffer-transfer-should-not-reduce-extra-memory-size.js
Revision
295710
Author
[email protected]
Date
2022-06-21 18:34:32 -0700 (Tue, 21 Jun 2022)

Log Message

[JSC] Add tests ensuring that extraMemorySize is monotonically increasing until full-collection happens
https://bugs.webkit.org/show_bug.cgi?id=241832
rdar://95384643

Reviewed by Mark Lam.

This patch adds tests ensuring that extraMemorySize is monotonically increasing until full-collection happens.
If this assumption is broken, GC scheduling can be confused. And we crash with existing assertions.

* JSTests/stress/array-buffer-transfer-should-not-reduce-extra-memory-size.js: Added.

Canonical link: https://commits.webkit.org/251715@main

Added Paths

Diff

Added: trunk/JSTests/stress/array-buffer-transfer-should-not-reduce-extra-memory-size.js (0 => 295710)


--- trunk/JSTests/stress/array-buffer-transfer-should-not-reduce-extra-memory-size.js	                        (rev 0)
+++ trunk/JSTests/stress/array-buffer-transfer-should-not-reduce-extra-memory-size.js	2022-06-22 01:34:32 UTC (rev 295710)
@@ -0,0 +1,2 @@
+for (let i = 0; i < 100; i++)
+    transferArrayBuffer(new Uint8Array(2 ** 21).buffer);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to