Repository: electron
Issue: Enable cppgc in Node.js on 32-bit platforms
Labels: status/confirmed,upgrade-follow-up

We should re-enable usage of the cppgc heap on 32-bit devices. Disabled in order to unblock the roll as it was crashing on 32 bit devices in heap marking.

Refs https://github.com/nodejs/node/pull/49187
Refs https://github.com/electron/electron/pull/40545

See https://gist.github.com/codebytere/275ec8923253fd6559b3d36115f7b31b for more information

Relevant codepaths:

* [MarkingVisitorBase](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/marking-visitor.h;drc=d4a7d3fb6f5100019d6153d5cf00c60f06b1d0a2;l=48)<[ConcreteVisitor](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/marking-visitor-inl.h;bpv=1;bpt=1;l=492?q=VisitEmbedderTracingSubClassWithEmbedderTracing&sq=package:chromium&type=cs&gsn=ConcreteVisitor&gs=KYTHE%3A%2F%2FIuIDCp8Ba3l0aGU6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2NvZGVzZWFyY2gvY2hyb21pdW0vc3JjLy9tYWluP2xhbmc9YyUyQiUyQj9wYXRoPXY4L3NyYy9oZWFwL2NvbmN1cnJlbnQtbWFya2luZy5jYyN1eWRmZ19lc25SaTlHRWdjSFBFVEIwSGRvcE5ucFVpVGpFTktOLUZGcjdrCpkBa3l0aGU6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2NvZGVzZWFyY2gvY2hyb21pdW0vc3JjLy9tYWluP2xhbmc9YyUyQiUyQj9wYXRoPXY4L3NyYy9oZWFwL21hcmstY29tcGFjdC5jYyNONVB2OW9OQ3liOGRIZ1RLWlkxLTNhS3MtcmIwZFhZUjFYRTJKV0JZMUU0CqEBa3l0aGU6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2NvZGVzZWFyY2gvY2hyb21pdW0vc3JjLy9tYWluP2xhbmc9YyUyQiUyQj9wYXRoPXY4L3NyYy9oZWFwL3JlZmVyZW5jZS1zdW1tYXJpemVyLmNjI0RpMWFwNEliYl94REJRVXdmTzEya3d6bGJWeC1UeWpmaDJTRURPQ0lqRWM%3D)>::[VisitEmbedderTracingSubClassWithEmbedderTracing](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/marking-visitor-inl.h;bpv=1;bpt=1;l=493?q=VisitEmbedderTracingSubClassWithEmbedderTracing&sq=package:chromium&type=cs&gsn=VisitEmbedderTracingSubClassWithEmbedderTracing&gs=KYTHE%3A%2F%2Fkythe%3A%2F%2Fchromium.googlesource.com%2Fcodesearch%2Fchromium%2Fsrc%2F%2Fmain%3Flang%3Dc%252B%252B%3Fpath%3Dv8%2Fsrc%2Fheap%2Fmarking-visitor-inl.h%23Rj67JpMQSlVaTKvwmyAEWCAWNljdCq09VwOPtiEBfEg)
* [MarkingWorklists](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/marking-worklist.h;drc=d4a7d3fb6f5100019d6153d5cf00c60f06b1d0a2;l=68)::[Local](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/marking-worklist.h;drc=d4a7d3fb6f5100019d6153d5cf00c60f06b1d0a2;l=139)::[PushExtractedWrapper](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/marking-worklist-inl.h;drc=d4a7d3fb6f5100019d6153d5cf00c60f06b1d0a2;bpv=1;bpt=1;l=58?gsn=PushExtractedWrapper&gs=KYTHE%3A%2F%2FKsYCCqABa3l0aGU6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2NvZGVzZWFyY2gvY2hyb21pdW0vc3JjLy9tYWluP2xhbmc9YyUyQiUyQj9wYXRoPXY4L3NyYy9oZWFwL21hcmtpbmctd29ya2xpc3QtaW5sLmgjV2RWWTd3V0pCV3RoUDJ5Nmdja3hFVG1LVVV0RjhaWEZ4Y2RqUVctU3ZMYwqgAWt5dGhlOi8vY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9jb2Rlc2VhcmNoL2Nocm9taXVtL3NyYy8vbWFpbj9sYW5nPWMlMkIlMkI_cGF0aD12OC9zcmMvaGVhcC9tYXJraW5nLXdvcmtsaXN0LWlubC5oI2NUS2VHQTg3Vm4ydkhFY1FuWkx6R1JyN2ZWU3RWRExSdlVqNHZRSDdOMVk%3D)
* [CppMarkingState](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/cppgc-js/cpp-marking-state.h;drc=d4a7d3fb6f5100019d6153d5cf00c60f06b1d0a2;l=21)::[MarkAndPush](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/cppgc-js/cpp-marking-state-inl.h;drc=d4a7d3fb6f5100019d6153d5cf00c60f06b1d0a2;bpv=1;bpt=1;l=29?gsn=MarkAndPush&gs=KYTHE%3A%2F%2FKtoCCqoBa3l0aGU6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2NvZGVzZWFyY2gvY2hyb21pdW0vc3JjLy9tYWluP2xhbmc9YyUyQiUyQj9wYXRoPXY4L3NyYy9oZWFwL2NwcGdjLWpzL2NwcC1tYXJraW5nLXN0YXRlLWlubC5oI2tuT0Q5NVRZSXpsTEtIT1duVGxFZEhwTmNEbjZIUXZWMko1eTRtak1YNk0KqgFreXRoZTovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vY29kZXNlYXJjaC9jaHJvbWl1bS9zcmMvL21haW4_bGFuZz1jJTJCJTJCP3BhdGg9djgvc3JjL2hlYXAvY3BwZ2MtanMvY3BwLW1hcmtpbmctc3RhdGUtaW5sLmgjdlRLVUIyQmNJZUs0UTJ0TnBLZndWRWhBblYxOEkyR3VCdUQ1cjJGN2xVSQ%3D%3D)
* [CppMarkingState](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/cppgc-js/cpp-marking-state.h;drc=d4a7d3fb6f5100019d6153d5cf00c60f06b1d0a2;l=21)::[MarkAndPush](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/cppgc-js/cpp-marking-state-inl.h;drc=d4a7d3fb6f5100019d6153d5cf00c60f06b1d0a2;bpv=1;bpt=1;l=35?gsn=MarkAndPush&gs=KYTHE%3A%2F%2FKtoCCqoBa3l0aGU6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2NvZGVzZWFyY2gvY2hyb21pdW0vc3JjLy9tYWluP2xhbmc9YyUyQiUyQj9wYXRoPXY4L3NyYy9oZWFwL2NwcGdjLWpzL2NwcC1tYXJraW5nLXN0YXRlLWlubC5oIzBjanBYM01aaHMwSm9wdWVYLTZxaU13WHBTRW5DMVFMRjJhZmdIYWkyWHMKqgFreXRoZTovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vY29kZXNlYXJjaC9jaHJvbWl1bS9zcmMvL21haW4_bGFuZz1jJTJCJTJCP3BhdGg9djgvc3JjL2hlYXAvY3BwZ2MtanMvY3BwLW1hcmtpbmctc3RhdGUtaW5sLmgjUGdWb2dqb01qQUZRSzY2UDlibHdPcWFJN1JOYWhXTldKSnVKemxWX2l6MA%3D%3D)
* [WrappableInfo](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/cppgc-js/wrappable-info.h;drc=d4a7d3fb6f5100019d6153d5cf00c60f06b1d0a2;l=17)::[From](https://source.chromium.org/chromium/chromium/src/+/main:v8/src/heap/cppgc-js/wrappable-info-inl.h;drc=d4a7d3fb6f5100019d6153d5cf00c60f06b1d0a2;bpv=1;bpt=1;l=31?gsn=From&gs=KYTHE%3A%2F%2FKtQCCqcBa3l0aGU6Ly9jaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2NvZGVzZWFyY2gvY2hyb21pdW0vc3JjLy9tYWluP2xhbmc9YyUyQiUyQj9wYXRoPXY4L3NyYy9oZWFwL2NwcGdjLWpzL3dyYXBwYWJsZS1pbmZvLWlubC5oIzZSbEVSQjNFMkhtbFpHQU0zZXNkcTZZZW02NmN0d1FvNDI4VjdBaGk0MWsKpwFreXRoZTovL2Nocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vY29kZXNlYXJjaC9jaHJvbWl1bS9zcmMvL21haW4_bGFuZz1jJTJCJTJCP3BhdGg9djgvc3JjL2hlYXAvY3BwZ2MtanMvd3JhcHBhYmxlLWluZm8taW5sLmgjT0t3Z05TeU9Mc1hmeHdVdWZHaDJqSC14a2VhMXBwbU9telJsVG5MdXRtdw%3D%3D)
* 💥