Repository navigation
build: don't build the crowdsourced V8 compile hints producer - #52791
Merged
MarshallOfSound merged 1 commit intoAug 12, 2026
Merged
Conversation
Blink's crowdsourced compile hints producer selects 0.5% of renderer processes on Windows and compiles every http(s) script on their first page from source, deliberately ignoring an existing V8 code cache and skipping local compile hints, so it can record which functions were compiled to UKM. The consuming side lives in chrome/browser and needs OptimizationGuide, and there is no UKM backend here, so the data is never used and the only effect is a cold-cache page load. Set produce_v8_compile_hints = false so the stub producer (already used on Android) is built instead.
VerteDinde
approved these changes
Aug 12, 2026
codebytere
approved these changes
Aug 12, 2026
MarshallOfSound
enabled auto-merge (squash)
August 12, 2026 18:14
MarshallOfSound
disabled auto-merge
August 12, 2026 19:38
MarshallOfSound
deleted the
build/no-crowdsourced-compile-hints-producer
branch
August 12, 2026 19:39
|
Release Notes Persisted
|
Contributor
|
I was unable to backport this PR to "42-x-y" cleanly; |
Contributor
|
I was unable to backport this PR to "43-x-y" cleanly; |
Contributor
|
I have automatically backported this PR to "44-x-y", please check out #52792 |
Contributor
|
@VerteDinde has manually backported this PR to "43-x-y", please check out #52943 |
MarshallOfSound
added a commit
that referenced
this pull request
Aug 18, 2026
build: don't build the crowdsourced V8 compile hints producer (#52791) Blink's crowdsourced compile hints producer selects 0.5% of renderer processes on Windows and compiles every http(s) script on their first page from source, deliberately ignoring an existing V8 code cache and skipping local compile hints, so it can record which functions were compiled to UKM. The consuming side lives in chrome/browser and needs OptimizationGuide, and there is no UKM backend here, so the data is never used and the only effect is a cold-cache page load. Set produce_v8_compile_hints = false so the stub producer (already used on Android) is built instead. (cherry picked from commit c6e46a4) Co-authored-by: Samuel Attard <[email protected]>
Contributor
|
@VerteDinde has manually backported this PR to "42-x-y", please check out #52988 |
MarshallOfSound
added a commit
that referenced
this pull request
Aug 19, 2026
build: don't build the crowdsourced V8 compile hints producer (#52791) Blink's crowdsourced compile hints producer selects 0.5% of renderer processes on Windows and compiles every http(s) script on their first page from source, deliberately ignoring an existing V8 code cache and skipping local compile hints, so it can record which functions were compiled to UKM. The consuming side lives in chrome/browser and needs OptimizationGuide, and there is no UKM backend here, so the data is never used and the only effect is a cold-cache page load. Set produce_v8_compile_hints = false so the stub producer (already used on Android) is built instead. (cherry picked from commit c6e46a4) Co-authored-by: Samuel Attard <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
produce_v8_compile_hints = falseso Blink builds the stubV8CrowdsourcedCompileHintsProducer(the configuration Android already ships) instead of the real one.v8_compile_hints_producer.cc) and, for the first page in that process, compiles every http(s) classic script from source: an existing V8 code cache is deliberately not consumed and local compile hints are neither consumed nor produced (v8_code_cache.cc), so it can record which functions were compiled to UKM.chrome/browser/v8_compile_hints/and requires OptimizationGuide, and Electron has no UKM backend, so the recorded data is never used; the only observable effect of the producer is a cold-cache load for 1 in 200 renderer processes on Windows.gnregeneratesbindings/buildflags.hwithPRODUCE_V8_COMPILE_HINTS=0,v8_compile_hints_producer.ocompiles down to the stub, and the build links and runs.Checklist
Release Notes
Notes: Fixed a 1-in-200 chance per renderer process on Windows of scripts on the first page load being compiled without their V8 code cache.