2022-10-03 20:21:00 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jeremy Rose <japthorp@slack-corp.com>
|
|
|
|
Date: Thu, 29 Sep 2022 16:30:17 -0700
|
|
|
|
Subject: fix parallel/test-v8-stats
|
|
|
|
|
|
|
|
new heap spaces were added in v8, this updates the expectations to
|
|
|
|
match. node should eventually have this too once they roll up the newer
|
|
|
|
v8.
|
|
|
|
|
|
|
|
diff --git a/test/parallel/test-v8-stats.js b/test/parallel/test-v8-stats.js
|
2022-11-10 21:31:20 +00:00
|
|
|
index 2eaa3c5b0609149271afb85d7ecc33272e0ada2e..3af7ea1e4a4598dc4125ff78e426d6dc6a025c66 100644
|
2022-10-03 20:21:00 +00:00
|
|
|
--- a/test/parallel/test-v8-stats.js
|
|
|
|
+++ b/test/parallel/test-v8-stats.js
|
2022-11-10 21:31:20 +00:00
|
|
|
@@ -47,6 +47,8 @@ const expectedHeapSpaces = [
|
2022-10-03 20:21:00 +00:00
|
|
|
'new_space',
|
|
|
|
'old_space',
|
|
|
|
'read_only_space',
|
|
|
|
+ 'shared_large_object_space',
|
|
|
|
+ 'shared_space'
|
|
|
|
];
|
|
|
|
const heapSpaceStatistics = v8.getHeapSpaceStatistics();
|
|
|
|
const actualHeapSpaceNames = heapSpaceStatistics.map((s) => s.space_name);
|