Skip to content

Add many ensureStillAliveHere scopes for good measure#1649

Open
justinmichaud wants to merge 1 commit intoWebPlatformForEmbedded:wpe-2.38from
justinmichaud:eng/wpebackport-ensure-still-alive
Open

Add many ensureStillAliveHere scopes for good measure#1649
justinmichaud wants to merge 1 commit intoWebPlatformForEmbedded:wpe-2.38from
justinmichaud:eng/wpebackport-ensure-still-alive

Conversation

@justinmichaud
Copy link
Copy Markdown

@justinmichaud justinmichaud commented Apr 17, 2026

See WebKit/WebKit#62985

This pattern crops up a bunch:

JSCell* a = ...

call(a->something())

So a can die before call, and that is completely valid, but
something() returns a pointer that is kept alive by a.

This patch fixes a bunch of these cases.
0822b5b

Build-Tests Layout-Tests
✅ 🛠 wpe-238-amd64-build ✅ 🧪 wpe-238-amd64-layout
✅ 🛠 wpe-238-arm32-build ✅ 🧪 wpe-238-arm32-layout

@justinmichaud
Copy link
Copy Markdown
Author

Let's land this anyway, since it can't hurt, but I was not able to find an example of this actually being needed in the current production binary.

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

Development

Successfully merging this pull request may close these issues.

2 participants