[kotlin] Attach callback threads by name and surface uncaught exceptions When Dawn invokes a Kotlin callback on an unattached native worker thread (such as DawnWorker), attach the thread to the JVM with its kernel thread name via JavaVMAttachArgs instead of letting ART rename it to "Thread-N", forward any uncaught callback exception to the thread's UncaughtExceptionHandler so it is reported instead of poisoning later JNI calls, and release callback global refs before detaching so ~UserData() does not re-attach and overwrite the thread name. Bug: 572734399 Change-Id: I58b52a6f4763f6ca30bc919e025f7c74bcb885e4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/350096 Reviewed-by: Mridul Goyal <mridulgoyal@google.com> Commit-Queue: Tarun Saini <sainitarun@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.