Skip to content
Commit Detail

Commit d8cf680

Author
Kenton Varda <kenton@cloudflare.com> 2025-12-07 21:08:58 -0600
Parents
ae702f8
Tree
7b4068d
Use ReverseIoOwn in makeReentryCallback().

This ensures resources held by the callback can be freed more proactively when the IoContext shuts down, and also solves an unlikely scenario where the callback outlives the whole isolate (not just the IoContext), leading to a V8 fatal error.

This is difficult to reproduce. I have a load test I'm running that usually triggers this after a minute or two, which is obviously not appropriate for a unit test. But this change definitely fixes the problem.

Files changed

1 file changed~1 modified