Turning off use_v8_context_snapshot in non-production builds by default

25 views
Skip to first unread message

Nico Weber

unread,
2:13 PM (6 hours ago) 2:13 PM
to blink-dev, Erik Staab
Hello,

use_v8_context_snapshot causes us to build lots of files (blink + dependencies) twice on bots that cross-compiler (win/arm64, android, etc).

We'd like to turn off use_v8_context_snapshot in regular release builds by default, and only keep it enabled in is_official_build builds.

However, a small number of tests, almost all of them inspector-protocol tests, fail if I try this: https://chromium-review.googlesource.com/c/chromium/src/+/5704136

That's surprising to me. I would've expected use_v8_context_snapshot to not change behavior.

Does anyone have an idea why this might happen?

Thanks,
Nico

Dave Tapuska

unread,
2:25 PM (6 hours ago) 2:25 PM
to Nico Weber, blink-dev, Erik Staab
Have you thought about setting gn config v8_use_external_startup_data on any bots?

I don't know why they are failing. The window constructor one is weird as well because the prototype chain is different...

dave.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADZ1XibPV%3Dd448fckQeYFaO617_9aahsxysAjMEdQ4sy%3DQw4kQ%40mail.gmail.com.

Leszek Swirski

unread,
2:54 PM (6 hours ago) 2:54 PM
to Dave Tapuska, Michael Lippautz, Nico Weber, blink-dev, Erik Staab

+Michael Lippautz 

I'm not sure we should do this for build time reasons alone. `use_v8_context_snapshot` is the default behaviour in shipping browsers, and it makes the renderer take quite a different path during page load / navigation. If we disable it in regular builds, then regular builds (including all the dchecks!) won't be running and texting the same code that we're shipping.

The fact that tests are failing with this flag change should be a huge flashing red light about this proposal - if we make the tests not test the code we're shipping, then we risk it breaking without us noticing. Indeed, I've been trying to turn this flag on for Android, and have been struggling to do so.

- Leszek



Reply all
Reply to author
Forward
0 new messages