From 2b963549bcd291e2e35fe934562ce866c28b4573 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sat, 11 Feb 2023 10:15:54 +0530 Subject: [PATCH 1/2] v8_enable_handle_zapping = false --- .gn | 1 + 1 file changed, 1 insertion(+) diff --git a/.gn b/.gn index 3be64aab08..76f6f39bdc 100644 --- a/.gn +++ b/.gn @@ -37,6 +37,7 @@ default_args = { v8_use_external_startup_data = false v8_use_snapshot = true + v8_enable_handle_zapping = false # Ensure allocation of typed arrays and arraybuffers always goes through # the embedder's ArrayBufferAllocator, otherwise small buffers get moved # around by the garbage collector but embedders normally want them to have From c9805f1d7e7a1d8665a382653727a16c8e11ab53 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sat, 11 Feb 2023 21:33:36 +0530 Subject: [PATCH 2/2] Add comment --- .gn | 1 + 1 file changed, 1 insertion(+) diff --git a/.gn b/.gn index 76f6f39bdc..78704bffcb 100644 --- a/.gn +++ b/.gn @@ -37,6 +37,7 @@ default_args = { v8_use_external_startup_data = false v8_use_snapshot = true + # Disable handle zapping for performance v8_enable_handle_zapping = false # Ensure allocation of typed arrays and arraybuffers always goes through # the embedder's ArrayBufferAllocator, otherwise small buffers get moved