Skip to content

Disable V8 optimization paths affected by array sort bugs - #45760

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/cea38e920245d6a133a5263118dc664fb3e61838
Sep 15, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Disable V8 optimization paths affected by array sort bugs

Why

The pinned V8 can inline Array.prototype.sort with incompatible element kinds when a comparator mutates the array, allowing an object to be stored in an integer-elements array.

What changed

Disable Maglev, Turbolev, and TurboFan array builtin inlining during code-mode runtime initialization until the V8 artifacts include the upstream fix.

Testing

Add an integration regression test that requests top-tier and Maglev optimization, checks element kinds after comparator mutation, and verifies ordinary numeric sorting still returns [1,2,3].

## Why

The pinned V8 can inline `Array.prototype.sort` with incompatible element kinds when a comparator mutates the array, allowing an object to be stored in an integer-elements array.

## What changed

Disable Maglev, Turbolev, and TurboFan array builtin inlining during code-mode runtime initialization until the V8 artifacts include the upstream fix.

## Testing

Add an integration regression test that requests top-tier and Maglev optimization, checks element kinds after comparator mutation, and verifies ordinary numeric sorting still returns `[1,2,3]`.

GitOrigin-RevId: cea38e920245d6a133a5263118dc664fb3e61838
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/cea38e920245d6a133a5263118dc664fb3e61838 branch from 5bd88d6 to aaa2cab Compare September 15, 2026 18:52
@copyberry
copyberry Bot merged commit aaa2cab into main Sep 15, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/cea38e920245d6a133a5263118dc664fb3e61838 branch September 15, 2026 18:52
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 15, 2026
@dilbarov
dilbarov deployed to issue-triage September 15, 2026 18:58 — with GitHub Actions Active
@dilbarov
dilbarov deployed to issue-triage September 15, 2026 18:58 — with GitHub Actions Active
@dilbarov
dilbarov deployed to issue-triage September 15, 2026 18:58 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — aaa2cabf Deployed Sep 15, 2026 by dilbarov via Generate label suggestions #45796
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.

2 participants