Explicitly set v8_enable_handle_zapping to false (#1188)

This commit is contained in:
Divy Srivastava 2023-02-11 22:52:04 +05:30 committed by GitHub
parent ffb875d5ae
commit 6043e7d49e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
.gn
View File

@ -37,6 +37,8 @@ default_args = {
v8_use_external_startup_data = false v8_use_external_startup_data = false
v8_use_snapshot = true v8_use_snapshot = true
# Disable handle zapping for performance
v8_enable_handle_zapping = false
# Ensure allocation of typed arrays and arraybuffers always goes through # Ensure allocation of typed arrays and arraybuffers always goes through
# the embedder's ArrayBufferAllocator, otherwise small buffers get moved # the embedder's ArrayBufferAllocator, otherwise small buffers get moved
# around by the garbage collector but embedders normally want them to have # around by the garbage collector but embedders normally want them to have