diff --git a/packages/experimental/code-runtime-python/src/index.ts b/packages/experimental/code-runtime-python/src/index.ts index fc3a0477ef..ed42c10730 100644 --- a/packages/experimental/code-runtime-python/src/index.ts +++ b/packages/experimental/code-runtime-python/src/index.ts @@ -355,7 +355,7 @@ const HOST_PARSE_BASELINE_BYTES = 64 * 1024 * 1024 * ≤64 MiB wide-object frame materializes several times that in property * storage — so the effective cap is the smaller of the two. A default Node * heap (~4 GiB) never binds; a constrained host (e.g. - * `--max-old-space-size=256` reports a ~300 MiB limit) lowers it to ~29 MiB, + * `--max-old-space-size=256` reports a ~300 MiB limit) lowers it to ~14 MiB, * and the load gate rejects budgets that cannot cross it. * @param heapLimit - the host's configured heap limit; the live * `heap_size_limit` when omitted. A parameter so the derivation is unit diff --git a/packages/experimental/code-runtime-python/tests/runtime.spec.ts b/packages/experimental/code-runtime-python/tests/runtime.spec.ts index 0de0216fc2..4fa4f225d4 100644 --- a/packages/experimental/code-runtime-python/tests/runtime.spec.ts +++ b/packages/experimental/code-runtime-python/tests/runtime.spec.ts @@ -182,7 +182,7 @@ describe('PythonCodeRuntime — seam descriptors and misuse', () => { // The load gate bounds the CHILD's build-and-encode under RLIMIT_AS; it // does not bound the HOST's JSON.parse, which materializes several times a // wide frame's raw bytes in property storage. In a child node with a - // 128 MiB old space the heap-derived frame cap is ~14 MiB, so a 50 MiB + // 128 MiB old space the heap-derived frame cap is ~7 MiB, so a 50 MiB // budget is rejected at load even though the address-space gate alone // would admit it (50 MiB * 12 = 600 MiB < 1 GiB - 64 MiB). const script = [