$ the-wire · showcase
Impeller fixes a Metal data race, Flutter GPU gets reusable binding sets
By RepoJournal · Filed · About Mobile platforms · Composed from the cited sources · methodology
A crash-class concurrency fix in Impeller's Metal backend and a slot-based binding API for Flutter GPU headline a day of targeted correctness and performance work across Flutter, Swift, and Kotlin.
[Impeller] Guard the Metal pipeline library maps with a mutex (#193722) flutter/flutter
PipelineLibraryMTL read and wrote its pipeline maps without a lock while Flutter GPU called GetPipeline on the UI thread and Impeller called it on the raster thread, so a lookup could hit a concurrent insert and crash inside unordered_map::find. The mutex now covers only the map lookup and the insert, matching PipelineLibraryVK, which already guarded its maps.
[Flutter GPU] Reusable binding sets flutter/flutter
GpuContext.createBindingSet resolves a group of uniform and texture bindings against shader reflection once, and RenderPass.bindSet places that set in one of four slots, so binding a whole material becomes one slot assignment instead of per-resource work on every draw. Bindings replay with borrowed reflection metadata, so no per-binding allocation happens inside Draw, and keys are UniformSlots ...
DCE: fix a crash when removing a dead terminator which consumes an owned value apple/swift
Dead-code elimination could delete a dead terminator whose owned lifetime-ending operand still had a live definition, for example a switch_enum over a non-copyable enum whose cases all branch to the same block. DCE now inserts the required destroy_value when that terminator is replaced; the companion fix preserves end_borrow for removed dead reborrow phis whose predecessor blocks were pruned.
SILGen: Avoid ownership error passing owned self to borrow accessor apple/swift
SILGen's lookThroughMoveOnlyCheckerPattern was generalised in an earlier change it did not need, producing ownership errors when calling borrow accessors on temporary ~Copyable values. This restores stripping of the unnecessary copy_value, mark_unresolved_non_copyable_value, begin_borrow sequence for borrow and mutate accessor calls.
Scripting: Set final deprecation levels in kotlin-script-runtime JetBrains/kotlin
With kotlin-script-runtime slated for deprecation as a whole, API levels are now set by remaining use: ERROR for the pre-1.2 script dependencies API, script locations, and the additional compiler arguments provider, WARNING for legacy templates still used by Gradle < 10 code compiled against the runtime. The same effort drops the runtime from the compiler and scripting artifacts and replaces it...