Skip to content

Fixes "promise will never complete" when exceeding memory.#3442

Merged
dom96 merged 1 commit intomainfrom
dominik/fixes-EW-8891
Jan 31, 2025
Merged

Fixes "promise will never complete" when exceeding memory.#3442
dom96 merged 1 commit intomainfrom
dominik/fixes-EW-8891

Conversation

@dom96
Copy link
Contributor

@dom96 dom96 commented Jan 30, 2025

When we grow WebAssembly memory in a specific way, we can get into a situation where the isolate gets terminated and the termination waiter signal doesn't reach the isolate. This resulted in a promise being rejected with a "Promise will never complete" exception. This PR fixes this so that a more descriptive exception is used.

@github-actions
Copy link

github-actions bot commented Jan 30, 2025

The generated output of @cloudflare/workers-types matches the snapshot in types/generated-snapshot 🎉

@dom96 dom96 force-pushed the dominik/fixes-EW-8891 branch 2 times, most recently from 198db4d to eeb33ee Compare January 31, 2025 12:22
@dom96 dom96 marked this pull request as ready for review January 31, 2025 12:33
@dom96 dom96 requested review from a team as code owners January 31, 2025 12:33
@dom96 dom96 requested review from a-robinson and anonrig January 31, 2025 12:33
Copy link
Collaborator

@danlapid danlapid left a comment

Choose a reason for hiding this comment

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

LGTM, but I would love to get that comment in 😄

@dom96 dom96 force-pushed the dominik/fixes-EW-8891 branch 3 times, most recently from 4724fc9 to 66256cd Compare January 31, 2025 15:11
@a-robinson a-robinson removed their request for review January 31, 2025 15:28
@dom96 dom96 force-pushed the dominik/fixes-EW-8891 branch from 66256cd to 25b6b5f Compare January 31, 2025 16:35
@dom96 dom96 merged commit 2e2a0cd into main Jan 31, 2025
17 checks passed
@dom96 dom96 deleted the dominik/fixes-EW-8891 branch January 31, 2025 17:01
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.

4 participants