Skip to content
Commit Detail

Commit ffed0c5

Author
Harris Hancock <harris@cloudflare.com> 2026-02-12 16:34:00 +0000
Parents
fb18078
Tree
8d16293
EW-10529 Centralize external memory adjustment for all subrequests

When the INCREASE_EXTERNAL_MEMORY_ADJUSTMENT_FOR_FETCH autogate is
enabled, apply an 8 KiB external memory adjustment to all
concurrency-limited subrequests (fetch, KV, R2, Cache, Queues,
Hyperdrive, TCP, WebSocket), not just fetch(). This is done centrally
in IoContext::getSubrequestNoChecks() and IoContext::getCacheClient()
using IoContext::currentLock to obtain the jsg::Lock without requiring
any signature changes.

When the autogate is off, the existing 3 KiB adjustment remains in
fetchImplNoOutputLock() for fetch() only, preserving the old behavior.

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed

2 files changed~2 modified