mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
Disables useWasmOSR on Linux x64 to work around a JavaScriptCore bug that causes crashes (SIGILL/segfault) when calling Emscripten-exported Wasm functions via direct method calls after many iterations. The crash occurs specifically with direct method call patterns like `module._func(arg)` vs working alternatives like `const fn = module._func; fn(arg)`. This workaround trades some Wasm performance (no on-stack replacement from interpreter to JIT) for stability. Wasm code still gets JIT-compiled after enough executions via the normal tiering mechanism. Fixes #26366 Fixes #26444 Fixes #17841 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>