From 75f10689e9b39bc5fc3e3f6114aab1931481576b Mon Sep 17 00:00:00 2001 From: R Date: Sun, 15 Nov 2026 11:09:52 -0300 Subject: [PATCH 1/3] asio and cobalt: their tests and texts under the -O3 release link --- libs/asio | 2 +- libs/cobalt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/asio b/libs/asio index 6c4e2c85..bbc81f55 160000 --- a/libs/asio +++ b/libs/asio @@ -1 +1 @@ -Subproject commit 6c4e2c85fe6e875bbf67db095df2497b93bf455b +Subproject commit bbc81f55721b1a67f6bc96961c0bdf5496a681a7 diff --git a/libs/cobalt b/libs/cobalt index 5d51c4aa..79da1f68 160000 --- a/libs/cobalt +++ b/libs/cobalt @@ -1 +1 @@ -Subproject commit 5d51c4aa89e563070aa244e0635139758d762f97 +Subproject commit 79da1f6803df549aea8ddc7683d65ee459f3a6bc From 03bb7cb8d2c3a311e462601db23bca7233bce396 Mon Sep 17 00:00:00 2001 From: R Date: Sun, 15 Nov 2026 11:23:43 -0300 Subject: [PATCH 2/3] guidelines: asio's Asyncify stack and published sizes under the -O3 release link --- CODING-GUIDELINES.md | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/CODING-GUIDELINES.md b/CODING-GUIDELINES.md index 85fc6723..3316c841 100644 --- a/CODING-GUIDELINES.md +++ b/CODING-GUIDELINES.md @@ -6491,11 +6491,15 @@ Asio's first library-main CI and the final joint candidate remain separate gates - **Asyncify's stack is 8192 bytes unless a program raises it with the propagated feature `asyncify-stack-size` (powers of two up to 1048576, a smaller value stopping the compile), and `asyncify_stack` reads the bytes - each unwind wrote from Asyncify's own data, in debug, release and release - linked with `-O3`.** A suspension that does not fit traps with - `RuntimeError: unreachable`; 8192 is twice the smallest power of two every - build passed with (deepest 3,540 bytes, Cobalt's 1,088), and Emscripten's - default of 4096 left 556 bytes. + each unwind wrote from Asyncify's own data, in debug and release.** A + suspension that does not fit traps with `RuntimeError: unreachable`. 8192 + was twice the smallest power of two every build passed with when b2 linked + a release build without optimization (deepest 3,540 bytes, Cobalt's + 1,088); since release links at `-O3` (#18) debug is the deepest build + (1,168 bytes, 388 in release; Cobalt's 1,036 and 384, measured on + 2026-11-15), and 8192 stays the default and the floor that the libraries + built on asio and their programs are tested against, a smaller one being a + change of its own to measure across them. Source: `genesis/design.md`, D5 (proposals); `AGENTS.md` (asio). - **Artifacts are named Boost's way (`app-60-d-jspi.js`, `webcpp-suspend-asyncify/app-60-d-asyncify.js`), `webcpp.variants` builds a @@ -6507,10 +6511,13 @@ Asio's first library-main CI and the final joint candidate remain separate gates `response.url`, so that a redirect does not misdirect it. Source: `genesis/design.md`, D10, and `genesis/reference/STATUS.md`, task 12 (proposals). -- **Published binary sizes are release builds linked with `-O3` explicitly, - and `webcpp.size-table` records every guide example in both variants.** b2's - emscripten toolset does not pass the optimization level to the link; in - release Asyncify's program is about 1.9 times JSPI's (2.9 in debug). The +- **Published binary sizes are release builds, which the superproject links + at `-O3` as it compiles them, and `webcpp.size-table` records every guide + example in both variants.** b2 1.92's emscripten toolset passes no + optimization level to the link, which the Jamroot's region + `emscripten-link-optimization` adds (#18); in release Asyncify's program + is about twice JSPI's (asio's timers, 988,047 bytes against 489,216 of + `.wasm`), and 2.9 times in debug. The optimized JSPI link exports `emscripten_stack_get_current` and `_emscripten_stack_restore`, since Emscripten reads `EM_JS_DEPS` after native linking. From a60e6fe72c3a2e06911329304319248df4eb5dfc Mon Sep 17 00:00:00 2001 From: R Date: Sun, 15 Nov 2026 12:00:41 -0300 Subject: [PATCH 3/3] asio: the Asyncify stack stays 8192, as the owner decided --- CODING-GUIDELINES.md | 8 +++++--- libs/asio | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CODING-GUIDELINES.md b/CODING-GUIDELINES.md index 3316c841..307c7e0b 100644 --- a/CODING-GUIDELINES.md +++ b/CODING-GUIDELINES.md @@ -6497,9 +6497,11 @@ Asio's first library-main CI and the final joint candidate remain separate gates a release build without optimization (deepest 3,540 bytes, Cobalt's 1,088); since release links at `-O3` (#18) debug is the deepest build (1,168 bytes, 388 in release; Cobalt's 1,036 and 384, measured on - 2026-11-15), and 8192 stays the default and the floor that the libraries - built on asio and their programs are tested against, a smaller one being a - change of its own to measure across them. + 2026-11-15). The owner decided on 2026-11-15 that 8192 stays: programs + ship release builds, where the deepest suspension of the libraries built + on asio wrote 564 bytes (trystero's room test), and debug, for + development and the tests, 2,344, within the half `asyncify_stack` asks; + 8192 is also the floor those libraries are tested against. Source: `genesis/design.md`, D5 (proposals); `AGENTS.md` (asio). - **Artifacts are named Boost's way (`app-60-d-jspi.js`, `webcpp-suspend-asyncify/app-60-d-asyncify.js`), `webcpp.variants` builds a diff --git a/libs/asio b/libs/asio index bbc81f55..2a59df26 160000 --- a/libs/asio +++ b/libs/asio @@ -1 +1 @@ -Subproject commit bbc81f55721b1a67f6bc96961c0bdf5496a681a7 +Subproject commit 2a59df26741b9fb1c498d0be35396ff424cbff59