Skip to content

Upgrade V8 to 152.2.0 and backport Array.sort safety guards - #54519

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/138b7821cddd25466c10aced1dd22be24837caf0
Oct 16, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/138b7821cddd25466c10aced1dd22be24837caf0

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Upgrade V8 to 152.2.0 and backport Array.sort safety guards

Why

Optimized Array.prototype.sort can write objects into incompatible array element storage when receiver element kinds differ and the comparator mutates the array.

What changed

  • Upgrade v8 to 152.2.0, the Bazel V8 source to 15.2.124.1, and ICU data and initialization to version 78.
  • Backport element-kind agreement checks for sort inlining in TurboFan and Maglev. Apply the patch to Bazel builds and Windows MSVC source builds, and include it in source-build cache keys and canary triggers.
  • Refresh pinned sandbox archives and bindings, extend Bazel prebuilt coverage to musl Linux, and use matching sandbox bindings on Windows MSVC.
  • Update Bazel integration patches and runtime dependencies for the new V8 release, and download the pinned Windows build tools in source-build workflows.

Testing

Include the upstream sort regression test covering mixed element kinds, comparator mutation, and continued optimization for matching kinds. Add a test requiring canary and Windows source builds when the backport changes, and update artifact-fetch tests for the new version.

## Why

Optimized `Array.prototype.sort` can write objects into incompatible array element storage when receiver element kinds differ and the comparator mutates the array.

## What changed

- Upgrade `v8` to `152.2.0`, the Bazel V8 source to `15.2.124.1`, and ICU data and initialization to version 78.
- Backport element-kind agreement checks for sort inlining in TurboFan and Maglev. Apply the patch to Bazel builds and Windows MSVC source builds, and include it in source-build cache keys and canary triggers.
- Refresh pinned sandbox archives and bindings, extend Bazel prebuilt coverage to musl Linux, and use matching sandbox bindings on Windows MSVC.
- Update Bazel integration patches and runtime dependencies for the new V8 release, and download the pinned Windows build tools in source-build workflows.

## Testing

Include the upstream sort regression test covering mixed element kinds, comparator mutation, and continued optimization for matching kinds. Add a test requiring canary and Windows source builds when the backport changes, and update artifact-fetch tests for the new version.

GitOrigin-RevId: 138b7821cddd25466c10aced1dd22be24837caf0
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/138b7821cddd25466c10aced1dd22be24837caf0 branch from 12e1795 to 6ae8b8a Compare October 16, 2026 06:07
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot merged commit 6ae8b8a into main Oct 16, 2026
1 of 2 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/138b7821cddd25466c10aced1dd22be24837caf0 branch October 16, 2026 06:07
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-16T06:07:10.873104Z 12e1795 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 16, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 6ae8b8aa Deployed Oct 16, 2026 by zulunws via Identify potential duplicates (all issues) #56104
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.