$ the-wire · showcase
Swifts exactly-once closure contexts now trap on drop, Impeller GLES matches Metal
By RepoJournal · Filed · About Mobile platforms · Composed from the cited sources · methodology
Flutter closed a rendering-semantics gap between its GLES backend and Metal/Vulkan and moved more of flutter_tools onto ToolContext, while Swift made a silent dropped-closure bug a hard runtime trap.
IRGen: Trap when an exactly-once closure context is destroyed. apple/swift
IRGen now emits a destructor for an exactly-once closure's context that terminates the program, because a release reaching it means the closure was dropped without being called. It calls `swift_onceClosureDestroyedError` where the runtime has it and traps inline for older deployment targets and Embedded Swift; the partial apply forwarder now destroys unconsumed fields so a call is no longer mis...
[impeller:gles] fixes early calls to flatten scenes flutter/flutter
Impeller's GLES backend now delays snapshot display_list creation and builds the offscreen surface on demand, so flattening a scene before the surface exists works. The commit message states the intent plainly: "This makes opengles match the behavior of vulkan and metal" (gaaclarke).
[flutter_tools] Inject dependencies into desktop builders and custom devices (#194050) flutter/flutter
`buildLinux`, `buildWindows`, `VisualStudio`, `DesktopDevice`, and `CustomDevice` no longer reach through `globals.dart`, taking their dependencies through `ToolContext` instead. Anything that constructs these builders or devices directly, in a plugin author's tooling or a flutter_tools fork, needs to thread a context through rather than rely on ambient state.
[skwasm] Implement Wasm worker futex semaphores (#194139) flutter/flutter
Multi-threaded Skwasm and Web Impeller builds replace Emscripten's no-op POSIX semaphore stubs (`sem_init`, `sem_destroy`, `sem_post`, `sem_wait`, `sem_trywait`) with a WebAssembly atomic futex implementation. Those stubs came from `library_pthread_stub.c` in `libc-ww.a` under `-sWASM_WORKERS=1` without `-pthread`, so semaphore calls in `skwasm_heavy` and `wimp_heavy` previously did nothing.
[any ~Copyable] Fix a runtime crash with certain generic casts apple/swift
In the long tail: SIL's generic-signature optimizer missed a type parameter carried by the new instruction form used by `is` on `any ~Copyable` values, dropped generic info that was still needed, and crashed at runtime; Swift also removed the `-enable-address-dependencies` option, trapped inline instead of trapping silently on bad closure drops mentioned above, and Kotlin's exported Swift packa...