onnxruntime
7f905e04 - Fix WebGPU static destruction crash by heap-allocating contexts map (#27470)

Commit
7 days ago
Fix WebGPU static destruction crash by heap-allocating contexts map (#27470) Heap-allocate `WebGpuContextFactory::contexts_` to avoid crashes during static destruction when dependent DLLs (e.g. dxcompiler.dll) have already been unloaded. `Cleanup()` explicitly deletes the map; on abnormal termination it safely leaks. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Author
Parents
Loading