File
Blob: patches/v8/0021-Port-concurrent-mksnapshot-support.patch
| 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: Felix Hanau <felix@cloudflare.com> |
| 3 | Date: Sun, 8 Jun 2025 16:39:03 -0400 |
| 4 | Subject: Port concurrent mksnapshot support |
| 5 | |
| 6 | Change-Id: I57c8158ff5d624e5379e6b072f27ac7a40419522 |
| 7 | |
| 8 | diff --git a/BUILD.bazel b/BUILD.bazel |
| 9 | index 8eb045f0260fc30a786acfabfcae3d62879aaef3..71db68eef5cce90ec721dabdef446aee224bce9a 100644 |
| 10 | --- a/BUILD.bazel |
| 11 | +++ b/BUILD.bazel |
| 12 | @@ -120,6 +120,11 @@ v8_flag(name = "v8_enable_hugepage") |
| 13 | |
| 14 | v8_flag(name = "v8_enable_fast_mksnapshot") |
| 15 | |
| 16 | +v8_flag( |
| 17 | + name = "v8_enable_concurrent_mksnapshot", |
| 18 | + default = True, |
| 19 | +) |
| 20 | + |
| 21 | v8_flag(name = "v8_enable_future") |
| 22 | |
| 23 | # NOTE: Transitions are not recommended in library targets: |
| 24 | @@ -4541,6 +4546,13 @@ v8_mksnapshot( |
| 25 | "--no-turbo-verify-allocation", |
| 26 | ], |
| 27 | "//conditions:default": [], |
| 28 | + }) + select({ |
| 29 | + ":is_v8_enable_concurrent_mksnapshot": [ |
| 30 | + "--concurrent-builtin-generation", |
| 31 | + # Use all the cores for concurrent builtin generation. |
| 32 | + "--concurrent-turbofan-max-threads=0", |
| 33 | + ], |
| 34 | + "//conditions:default": [], |
| 35 | }) + select({ |
| 36 | ":is_v8_enable_snapshot_code_comments": ["--code-comments"], |
| 37 | "//conditions:default": [], |