fix(desktop): disable JSC JIT on AVX-less Linux CPUs - #3755
Open
gokay-ai wants to merge 1 commit into
Open
Conversation
Contributor
|
sensible jsc workaround. please document the avx check in the linux troubleshooting doc so support can point users at it |
Author
|
Thanks — addressed in fc2820e. The Linux troubleshooting guide now documents the exact guarded preflight ( |
On Linux x86_64, detect missing AVX from /proc/cpuinfo and set JSC_useJIT=0 before WebKit starts. Preserve explicit user overrides, keep the decision independent of dmabuf heuristics, and retain current main's WEBKIT_DMABUF_RENDERER_FORCE_SHM behavior. Fixes block#3747 Signed-off-by: Gökay Yılmaz <60583610+gokay-ai@users.noreply.github.com> Co-authored-by: GokayAI <gokay-ai@users.noreply.github.com>
cursor
Bot
force-pushed
the
agent/codex/fix-avxless-linux-jsc-202607301746
branch
from
August 16, 2026 21:06
fc2820e to
2fbbe20
Compare
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.
Summary
Rebased onto current
mainafter #4505 switched dmabuf workarounds toWEBKIT_DMABUF_RENDERER_FORCE_SHM=1./proc/cpuinfofeature data without AVX (JSC_useJIT=0).JSC_useJITconfiguration (including empty values) and keep the JSC decision independent of dmabuf /--safe-renderingheuristics.--safe-renderinguseWEBKIT_DMABUF_RENDERER_FORCE_SHM, notWEBKIT_DISABLE_DMABUF_RENDERER.SIGILLworkaround indocs/linux-rendering-troubleshooting.md.Related issue
Fixes #3747
Testing
rustfmt --edition 2021 --check desktop/src-tauri/src/webkit_rendering.rs desktop/src-tauri/src/webkit_rendering/tests.rsgit diff --checkcargo testharness forwebkit_rendering(21 tests: AVX absent/present, user override, non-x86, unreadable cpuinfo, dmabuf/JSC independence, FORCE_SHM regressions)cargo test --manifest-path desktop/src-tauri/Cargo.toml webkit_rendering --lib(blocked in this environment: GTK/WebKit dev packages unavailable)