xinwei tang
unread,Aug 28, 2025, 11:42:53 AM (10 days ago) Aug 28Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to v8-dev
I found that when compiling V8 with Pointer Compression enabled but Sandbox disabled, the ExternalPointerTable only increases without decreasing, causing a memory leak. After a detailed investigation, I discovered that the garbage collection-related calls for the ExternalPointerTable are shielded by Sandbox-related macros. After enabling Sandbox, the leak is resolved, but the garbage collection of the ExternalPointerTable introduces approximately 100MB of peak memory usage and around 50MB of normal memory usage, which completely offsets the memory reduction brought by Pointer Compression. Is there a way to reduce the garbage collection overhead of the ExternalPointerTable or resolve the memory leak issue without enabling Sandbox?