Skip to content

Support Linux ARM64 64KB WebKit builds - #30756

Closed
x22x22 wants to merge 4 commits into
oven-sh:mainfrom
x22x22:fix-latest-webkit-64kb-linux-arm64
Closed

x22x22 wants to merge 4 commits into
oven-sh:mainfrom
x22x22:fix-latest-webkit-64kb-linux-arm64

Conversation

@x22x22

@x22x22 x22x22 commented May 15, 2026 •

Copy link
Copy Markdown

Support Linux ARM64 64KB page builds with latest WebKit

背景

本次改动的目标是让 Bun 在最新本地 WebKit 依赖下,完成 Linux ARM64 64KB page 环境的构建与基础运行验证。

对应分支:fix-latest-webkit-64kb-linux-arm64

关键提交:

  • 63a02de4f5 Support local 64KB Linux Bun builds
  • bc693e6c8a Adapt Bun for latest WebKit 64KB Linux builds

Summary

  • 补齐 Bun 本地构建链路对 Linux ARM64 64KB page 的支持
  • 适配最新 WebKit/JSC API 变化,修复 bindings、生成代码和无 JIT 场景的兼容问题
  • 与配套 WebKit 分支联动后,在 llm-12 的 64KB page 环境完成 smoke test

Changes

构建链路

  • 在 Linux ARM64 本地 WebKit 构建路径中启用 USE_64KB_PAGE_BLOCK=ON
  • 调整 Bun 构建脚本,减少本地 64KB 构建过程中的不稳定因素
  • 简化 Zig 构建调用路径,避免本地 --console / 进度通道带来的异常
  • 为当前工具链补充 -Wno-undefined-var-template

Bun 与最新 WebKit API 适配

  • 更新 ZigGlobalObject、NodeVM、bindings 等 JSC 接口适配逻辑
  • 兼容 JSPromise::resolve(...)、wasm streaming、static globals、GC visitor/output constraints 的最新签名变化
  • 修复多处 WebCore custom bindings 与当前 WebKit 生成代码风格的兼容问题
  • 更新代码生成逻辑,使生成产物与最新 WebKit 的 GC 集成方式一致

运行时结果

  • 结合配套 WebKit 修复后,Bun 可在 Linux ARM64 64KB page 环境执行最小 JS 和基础文件 IO

Validation

验证环境:llm-12

uname -m
getconf PAGE_SIZE

结果:

  • uname -m 输出 aarch64
  • getconf PAGE_SIZE 输出 65536

使用本分支与配套 WebKit 分支构建本地产物后,在 ubuntu:24.04 arm64 容器内验证:

./bun --revision
./bun --version
./bun -e "console.log(process.arch, process.platform, Bun.version)"
./bun -e 'await Bun.write("/tmp/a.txt", "ok"); console.log(await Bun.file("/tmp/a.txt").text())'

结果:

  • ./bun --revision -> 1.3.11-canary.1+bc693e6c8
  • ./bun --version -> 1.3.11
  • ./bun -e "console.log(process.arch, process.platform, Bun.version)" -> arm64 linux 1.3.11
  • ./bun -e 'await Bun.write("/tmp/a.txt", "ok"); console.log(await Bun.file("/tmp/a.txt").text())' -> ok

Risk/Notes

  • 本 PR 主要覆盖 Linux ARM64 64KB page 场景
  • Bun 侧改动多数是为了跟进最新 WebKit API 漂移,风险集中在 JSC bindings、WebCore custom bindings 和生成代码
  • 本 PR 依赖配套 WebKit 分支 fix/structure-heap-64kb-linux-arm64

x22x22 and others added 4 commits March 22, 2026 23:07
Copilot AI review requested due to automatic review settings May 15, 2026 02:47

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@x22x22

x22x22 commented May 15, 2026

Copy link
Copy Markdown
Author

Closing because this PR was opened against upstream by mistake; the intended target is my fork repository.

@x22x22 x22x22 closed this May 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR adapts Bun to build and run on Linux ARM64 with 64KB page size against the latest local WebKit, updating numerous JSC binding signatures and adding a fallback path for legacy ELF templates in the standalone module graph.

Changes:

  • Update JSC API call sites (e.g., JSPromise::resolve now takes vm, wasm streaming options, addStaticGlobals, GC visitOutputConstraints/visitAdditionalChildren macros, removal of queueMicrotaskToEventLoop) and guard JIT-only code with ENABLE(JIT)/ENABLE(DFG_JIT).
  • Build/script changes for 64KB Linux ARM64: enable USE_64KB_PAGE_BLOCK, disable PCH on Linux, simplify Zig invocation, add -Wno-undefined-var-template.
  • Add legacy trailer fallback when ELF .bun section is absent in StandaloneModuleGraph, and convert JSCTaskScheduler storage to unique_ptr to break a header cycle.

Reviewed changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tmp_link_and_test.py Ad-hoc local link/test script
tmp_compile_entry.js Tiny smoke test entry
tmp_build_opencode_musl.sh Local musl build shell helper
src/codegen/generate-classes.ts Remove stray DEFINE_VISIT_ADDITIONAL_CHILDREN emission
src/codegen/bundle-functions.ts Drop std::size arg from addStaticGlobals call
src/bun.js/webview/JSWebView.cpp Pass vm to JSPromise::resolve
src/bun.js/modules/BunJSCModule.h Guard JIT include and totalCompileTime with ENABLE(JIT)
src/bun.js/bindings/webcore/SerializedScriptValue.cpp Pass addressType to Wasm Memory create
src/bun.js/bindings/webcore/JSWorker.cpp Pass vm to resolve
src/bun.js/bindings/webcore/JSPerformanceObserverCustom.cpp Inline visitOutputConstraints/template instantiations
src/bun.js/bindings/webcore/JSPerformance.cpp Provide non-DFG DOMJIT signature alternative
src/bun.js/bindings/webcore/JSMessagePortCustom.cpp Inline output constraints + instantiations
src/bun.js/bindings/webcore/JSMessageEventCustom.cpp Explicit template instantiations
src/bun.js/bindings/webcore/JSMessageEvent.{h,cpp} Use DECLARE/DEFINE_VISIT_OUTPUT_CONSTRAINTS macros
src/bun.js/bindings/webcore/JSMessageChannel{Custom,.h,.cpp} Same visit-output-constraints macro adoption
src/bun.js/bindings/webcore/JSEventTargetCustom.cpp Inline visitOutputConstraints + instantiations
src/bun.js/bindings/webcore/JSEventEmitterCustom.cpp Same as above
src/bun.js/bindings/webcore/JSErrorEventCustom.cpp Same as above
src/bun.js/bindings/webcore/JSDOMPromiseDeferred.cpp Pass vm to resolve
src/bun.js/bindings/webcore/JSAbortSignalCustom.cpp Explicit template instantiations
src/bun.js/bindings/webcore/CustomEventCustom.cpp Inline visitOutputConstraints + instantiations
src/bun.js/bindings/bindings.cpp Pass vm to resolve calls
src/bun.js/bindings/ZigGlobalObject.{h,cpp} API drift adaptations, wasm streaming options, GC macros, removal of queueMicrotaskToEventLoop
src/bun.js/bindings/NodeVMSourceTextModule.cpp Guard JIT compile path
src/bun.js/bindings/NodeVMScript.cpp Guard JIT compile path; include Watchdog
src/bun.js/bindings/NodeVM.cpp Drop queueTaskToEventLoop slot
src/bun.js/bindings/NodeTimerObject.cpp Pass vm to resolve
src/bun.js/bindings/ModuleLoader.cpp Pass vm to resolve
src/bun.js/bindings/JSSecrets.cpp Pass vm to resolve
src/bun.js/bindings/JSMockFunction.cpp Drop redundant DEFINE_VISIT_ADDITIONAL_CHILDREN
src/bun.js/bindings/JSCTaskScheduler.cpp Dereference unique_ptr scheduler
src/bun.js/bindings/JSBundlerPlugin.cpp Pass vm to resolve
src/bun.js/bindings/BunClientData.{h,cpp} Move scheduler to unique_ptr to break header cycle
src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp Pass vm to resolve
src/bake/BakeGlobalObject.cpp Drop queueMicrotaskToEventLoop slot
src/StandaloneModuleGraph.zig Fallback to legacy trailer when .bun ELF section missing
scripts/build/zig.ts Simplify zig_build rule
scripts/build/flags.ts Add -Wno-undefined-var-template
scripts/build/deps/webkit.ts Enable USE_64KB_PAGE_BLOCK on linux+arm64
scripts/build/bun.ts Disable PCH on Linux
PR_64KB_LINUX_ARM64_BUN.md PR description doc
Comments suppressed due to low confidence (2)

tmp_link_and_test.py:1

  • This file (along with tmp_compile_entry.js and tmp_build_opencode_musl.sh) appears to be a temporary, developer-local script: it hardcodes paths like /workspace, /tmp/libicu, /usr/lib/llvm-21/bin/clang++, and /usr/lib/aarch64-linux-gnu, and is named with a tmp_ prefix. These artifacts should not be checked into the repository. Please remove them from the PR (or move them under a documented developer-tools location with portable paths) before merging.
    src/bun.js/modules/BunJSCModule.h:1
  • When ENABLE(JIT) is true the function returns inside the #if, leaving the trailing return ... jsNumber(0) reachable only in the non-JIT build. Some compilers will warn about an unreachable statement after the #endif in JIT builds. Consider using #if ENABLE(JIT) ... #else ... #endif so exactly one return is compiled in each configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +74
# Support Linux ARM64 64KB page builds with latest WebKit

## 背景

本次改动的目标是让 Bun 在最新本地 WebKit 依赖下,完成 Linux ARM64 64KB page 环境的构建与基础运行验证。

对应分支:`fix-latest-webkit-64kb-linux-arm64`

关键提交:

- `63a02de4f5` `Support local 64KB Linux Bun builds`
- `bc693e6c8a` `Adapt Bun for latest WebKit 64KB Linux builds`

## Summary

- 补齐 Bun 本地构建链路对 Linux ARM64 64KB page 的支持
- 适配最新 WebKit/JSC API 变化,修复 bindings、生成代码和无 JIT 场景的兼容问题
- 与配套 WebKit 分支联动后,在 `llm-12` 的 64KB page 环境完成 smoke test

## Changes

### 构建链路

- 在 Linux ARM64 本地 WebKit 构建路径中启用 `USE_64KB_PAGE_BLOCK=ON`
- 调整 Bun 构建脚本,减少本地 64KB 构建过程中的不稳定因素
- 简化 Zig 构建调用路径,避免本地 `--console` / 进度通道带来的异常
- 为当前工具链补充 `-Wno-undefined-var-template`

### Bun 与最新 WebKit API 适配

- 更新 `ZigGlobalObject`、`NodeVM`、`bindings` 等 JSC 接口适配逻辑
- 兼容 `JSPromise::resolve(...)`、wasm streaming、static globals、GC visitor/output constraints 的最新签名变化
- 修复多处 WebCore custom bindings 与当前 WebKit 生成代码风格的兼容问题
- 更新代码生成逻辑,使生成产物与最新 WebKit 的 GC 集成方式一致

### 运行时结果

- 结合配套 WebKit 修复后,Bun 可在 Linux ARM64 64KB page 环境执行最小 JS 和基础文件 IO

## Validation

验证环境:`llm-12`

```bash
uname -m
getconf PAGE_SIZE
```

结果:

- `uname -m` 输出 `aarch64`
- `getconf PAGE_SIZE` 输出 `65536`

使用本分支与配套 WebKit 分支构建本地产物后,在 `ubuntu:24.04` arm64 容器内验证:

```bash
./bun --revision
./bun --version
./bun -e "console.log(process.arch, process.platform, Bun.version)"
./bun -e 'await Bun.write("/tmp/a.txt", "ok"); console.log(await Bun.file("/tmp/a.txt").text())'
```

结果:

- `./bun --revision` -> `1.3.11-canary.1+bc693e6c8`
- `./bun --version` -> `1.3.11`
- `./bun -e "console.log(process.arch, process.platform, Bun.version)"` -> `arm64 linux 1.3.11`
- `./bun -e 'await Bun.write("/tmp/a.txt", "ok"); console.log(await Bun.file("/tmp/a.txt").text())'` -> `ok`

## Risk/Notes

- 本 PR 主要覆盖 Linux ARM64 64KB page 场景
- Bun 侧改动多数是为了跟进最新 WebKit API 漂移,风险集中在 JSC bindings、WebCore custom bindings 和生成代码
- 本 PR 依赖配套 WebKit 分支 `fix/structure-heap-64kb-linux-arm64`
Comment on lines +923 to +927
const legacy = brk: {
elf_file.writeBunSection(bytes) catch |err| {
if (err == error.BunSectionNotFound) {
break :brk true;
}
Comment thread scripts/build/bun.ts
@@ -226,7 +226,7 @@ export function emitBun(n: Ninja, cfg: Config, sources: Sources): BunOutput {
// clang-cl's /Yc//Yu flags exist but the wrapper+stub mechanism here
// is built around clang's -emit-pch model. If Windows PCH is wanted
// later, see compile.ts TODO(windows) for what needs wiring.
Comment on lines +3009 to +3011
void GlobalObject::visitAdditionalChildren(JSCell* cell, Visitor& visitor)
{
GlobalObject* thisObject = this;
auto* thisObject = jsCast<GlobalObject*>(cell);
Comment thread scripts/build/zig.ts
Comment on lines +200 to +204
// Default to plain prefix mode for Zig. `--console` and `--zig-progress`
// both depend on Zig's auxiliary progress channel, while plain mode keeps
// the invocation simple and has proven more reliable in local builds.
n.rule("zig_build", {
command: `${stream} ${consoleMode ? "--console" : "--zig-progress"} --env=ZIG_LOCAL_CACHE_DIR=$zig_local_cache --env=ZIG_GLOBAL_CACHE_DIR=$zig_global_cache $zig build $step $args`,
command: `${stream} --env=ZIG_LOCAL_CACHE_DIR=$zig_local_cache --env=ZIG_GLOBAL_CACHE_DIR=$zig_global_cache $zig build $step $args`,

void* bunVM;
Bun::JSCTaskScheduler deferredWorkTimer;
std::unique_ptr<Bun::JSCTaskScheduler> deferredWorkTimer;
@coderabbitai

coderabbitai Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5bd5a91b-df51-46e5-be41-9ed2340bf42c

📥 Commits

Reviewing files that changed from the base of the PR and between bbd3e62 and 9887920.

📒 Files selected for processing (46)
  • PR_64KB_LINUX_ARM64_BUN.md
  • scripts/build/bun.ts
  • scripts/build/deps/webkit.ts
  • scripts/build/flags.ts
  • scripts/build/zig.ts
  • src/StandaloneModuleGraph.zig
  • src/bake/BakeGlobalObject.cpp
  • src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp
  • src/bun.js/bindings/BunClientData.cpp
  • src/bun.js/bindings/BunClientData.h
  • src/bun.js/bindings/JSBundlerPlugin.cpp
  • src/bun.js/bindings/JSCTaskScheduler.cpp
  • src/bun.js/bindings/JSMockFunction.cpp
  • src/bun.js/bindings/JSSecrets.cpp
  • src/bun.js/bindings/ModuleLoader.cpp
  • src/bun.js/bindings/NodeTimerObject.cpp
  • src/bun.js/bindings/NodeVM.cpp
  • src/bun.js/bindings/NodeVMScript.cpp
  • src/bun.js/bindings/NodeVMSourceTextModule.cpp
  • src/bun.js/bindings/ZigGlobalObject.cpp
  • src/bun.js/bindings/ZigGlobalObject.h
  • src/bun.js/bindings/bindings.cpp
  • src/bun.js/bindings/webcore/CustomEventCustom.cpp
  • src/bun.js/bindings/webcore/JSAbortSignalCustom.cpp
  • src/bun.js/bindings/webcore/JSDOMPromiseDeferred.cpp
  • src/bun.js/bindings/webcore/JSErrorEventCustom.cpp
  • src/bun.js/bindings/webcore/JSEventEmitterCustom.cpp
  • src/bun.js/bindings/webcore/JSEventTargetCustom.cpp
  • src/bun.js/bindings/webcore/JSMessageChannel.cpp
  • src/bun.js/bindings/webcore/JSMessageChannel.h
  • src/bun.js/bindings/webcore/JSMessageChannelCustom.cpp
  • src/bun.js/bindings/webcore/JSMessageEvent.cpp
  • src/bun.js/bindings/webcore/JSMessageEvent.h
  • src/bun.js/bindings/webcore/JSMessageEventCustom.cpp
  • src/bun.js/bindings/webcore/JSMessagePortCustom.cpp
  • src/bun.js/bindings/webcore/JSPerformance.cpp
  • src/bun.js/bindings/webcore/JSPerformanceObserverCustom.cpp
  • src/bun.js/bindings/webcore/JSWorker.cpp
  • src/bun.js/bindings/webcore/SerializedScriptValue.cpp
  • src/bun.js/modules/BunJSCModule.h
  • src/bun.js/webview/JSWebView.cpp
  • src/codegen/bundle-functions.ts
  • src/codegen/generate-classes.ts
  • tmp_build_opencode_musl.sh
  • tmp_compile_entry.js
  • tmp_link_and_test.py

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


Walkthrough

Adds Linux ARM64 64KB page build support for Bun with the latest WebKit by updating the build configuration, adapting JSC/WebCore bindings to updated promise resolution and GC visitor patterns, refactoring deferred work timer ownership, and improving build stability.

Changes

Build Configuration for Linux ARM64 64KB Pages

Layer / File(s) Summary
Build documentation and WebKit/Bun configuration
PR_64KB_LINUX_ARM64_BUN.md, scripts/build/deps/webkit.ts, scripts/build/flags.ts, scripts/build/bun.ts
Project documentation describes the 64KB page build support. WebKit build script conditionally enables USE_64KB_PAGE_BLOCK for Linux ARM64. Bun build script disables PCH on Linux. Compiler flags add warning suppression for undefined-var-template.
Zig build simplification
scripts/build/zig.ts
Zig build rule removes --console/--zig-progress selection logic and console pool configuration to reduce instability, while preserving cache variable passing and restat behavior.

JSC Promise Resolution API Adaptation

Layer / File(s) Summary
Core promise resolution parameter updates
src/bun.js/bindings/bindings.cpp, src/bun.js/bindings/BunAnalyzeTranspiledModule.cpp, src/bun.js/bindings/ModuleLoader.cpp
Central promise resolution call sites in bindings and module loading update to pass explicit VM&amp; parameter to JSPromise and JSInternalPromise resolve methods.
WebCore promise integration updates
src/bun.js/bindings/webcore/JSDOMPromiseDeferred.cpp, src/bun.js/bindings/webcore/JSWorker.cpp, src/bun.js/bindings/JSBundlerPlugin.cpp, src/bun.js/bindings/JSSecrets.cpp, src/bun.js/bindings/NodeTimerObject.cpp, src/bun.js/webview/JSWebView.cpp
WebCore binding and DOM promise resolution points throughout the codebase update VM parameter passing to resolve() calls, and JSSecrets error paths now resolve promises directly in early-return branches.
JSC method table hook cleanup
src/bun.js/bindings/ZigGlobalObject.cpp
Removes queueMicrotaskToEventLoop hook entry from JSC GlobalObject method table initializers in Bake and NodeVM global objects, aligning with updated JSC API.

Deferred Work Timer Ownership Refactoring

Layer / File(s) Summary
Deferred work timer header refactoring
src/bun.js/bindings/BunClientData.h
BunClientData header adds forward declaration for JSCTaskScheduler and changes deferredWorkTimer member from inline object to std::unique_ptr, reducing header coupling.
Deferred work timer initialization and dereference
src/bun.js/bindings/BunClientData.cpp, src/bun.js/bindings/JSCTaskScheduler.cpp
BunClientData constructor initializes unique_ptr scheduler. JSCTaskScheduler methods dereference the pointer before accessing pending work tickets and scheduling operations.

GC Visitor Pattern Modernization

Layer / File(s) Summary
Core GC visitor pattern updates in ZigGlobalObject
src/bun.js/bindings/ZigGlobalObject.cpp, src/bun.js/bindings/ZigGlobalObject.h
ZigGlobalObject's GC visitation refactored to use cell-based visitAdditionalChildren(JSCell*, Visitor&amp;) signature and new visitOutputConstraintsImpl routing, replacing prior macro-based pattern.
GC visitor pattern updates for message/event classes
src/bun.js/bindings/webcore/JSMessageChannel.h, src/bun.js/bindings/webcore/JSMessageChannel.cpp, src/bun.js/bindings/webcore/JSMessageChannelCustom.cpp, src/bun.js/bindings/webcore/JSMessageEvent.h, src/bun.js/bindings/webcore/JSMessageEvent.cpp, src/bun.js/bindings/webcore/JSMessageEventCustom.cpp, src/bun.js/bindings/webcore/JSMessagePort...Custom.cpp
MessageChannel, MessageEvent, MessagePort, and related WebCore wrapper classes updated from macro-based visitor registration to explicit template instantiations and visitOutputConstraintsImpl implementations.
GC visitor pattern updates for event/observer classes
src/bun.js/bindings/webcore/JSErrorEventCustom.cpp, src/bun.js/bindings/webcore/JSEventEmitterCustom.cpp, src/bun.js/bindings/webcore/JSEventTargetCustom.cpp, src/bun.js/bindings/webcore/CustomEventCustom.cpp, src/bun.js/bindings/webcore/JSAbortSignalCustom.cpp, src/bun.js/bindings/webcore/JSPerformanceObserverCustom.cpp
ErrorEvent, EventEmitter, EventTarget, CustomEvent, AbortSignal, PerformanceObserver, and other WebCore classes updated with explicit visitOutputConstraints implementations and template instantiation declarations.
Code generation visitor pattern updates
src/codegen/generate-classes.ts
Code generator templates updated to emit visitOutputConstraintsImpl and DEFINE_VISIT_OUTPUT_CONSTRAINTS macro for generated JS wrapper classes instead of macro-based DEFINE_VISIT_ADDITIONAL_CHILDREN pattern.
JSMockFunction visitor pattern update
src/bun.js/bindings/JSMockFunction.cpp
JSMockFunction switches from DEFINE_VISIT_ADDITIONAL_CHILDREN to DEFINE_VISIT_CHILDREN visitor macro instantiation.

Conditional JIT Compilation Support

Layer / File(s) Summary
JIT conditional compilation in NodeVMScript
src/bun.js/bindings/NodeVMScript.cpp
NodeVMScript conditionally includes JIT header and wraps JIT compilation logic under #if ENABLE(JIT), with fallback path that skips compilation and directly installs code block on non-JIT builds.
JIT conditional compilation in NodeVMSourceTextModule
src/bun.js/bindings/NodeVMSourceTextModule.cpp
NodeVMSourceTextModule conditionally includes JIT header and wraps code-installation logic for cached bytecode under #if ENABLE(JIT).
JIT conditional compilation in JSPerformance and BunJSCModule
src/bun.js/bindings/webcore/JSPerformance.cpp, src/bun.js/modules/BunJSCModule.h
JSPerformance conditionally selects DOMJIT effect signature based on JIT enablement. BunJSCModule conditionally includes JIT header and returns zero compile time on non-JIT builds.

WebAssembly Streaming Compilation Options

Layer / File(s) Summary
WebAssembly options parameter declarations
src/bun.js/bindings/ZigGlobalObject.h
ZigGlobalObject header adds includes for WebAssemblyCompileOptions and std::optional, updating public method signatures for compileStreaming and instantiateStreaming to accept optional compile options parameter.
WebAssembly options parameter implementation
src/bun.js/bindings/ZigGlobalObject.cpp
ZigGlobalObject implementation updates compileStreaming and instantiateStreaming to accept and forward optional compile options through streaming compiler creation path.

Linux ELF Module Injection with Fallback

Layer / File(s) Summary
ELF section injection with fallback logic
src/StandaloneModuleGraph.zig
StandaloneModuleGraph Linux inject() reworked to prefer embedding module graph via .bun ELF section, with fallback to legacy trailer approach when section is unavailable or missing.

Miscellaneous API and Serialization Updates

Layer / File(s) Summary
Builtin globals and Wasm serialization updates
src/codegen/bundle-functions.ts, src/bun.js/bindings/webcore/SerializedScriptValue.cpp
Code generator updates call to addStaticGlobals to omit size parameter. SerializedScriptValue Wasm memory deserialization updated to include address type in create call. JSSecrets error paths simplified with early-return promise resolution.

Temporary Test and Build Scripts

Layer / File(s) Summary
Musl build and validation scripts
tmp_build_opencode_musl.sh, tmp_compile_entry.js
Temporary shell script sets up ICU library symlinks and runs musl-based build workflow. JavaScript smoke test logs compilation stage.
Link rule extraction and validation
tmp_link_and_test.py
Python script parses Ninja build file to extract bun-profile link rule, constructs clang++-based link command with linker options, and executes link step with library path configuration.

Possibly related PRs

  • oven-sh/bun#28371: Main WebKit upgrade PR with overlapping JSC integration changes including removal of queueMicrotaskToEventLoop hook and updates to promise resolution signatures.

Suggested reviewers

  • alii
  • dylan-conway

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants