Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capture the interface name for debug purposes when an endpoint closes.
This is intended to help narrow down what is causing an increase in crashes with NotifyError() on the stack. Due to the magic of tail call optimizations, the actual responsible stack frames are not actually present in the crash report. The initial CL attempted to annotate this debug info using a crash key; since notifications for Mojo endpoints can be dispatched on any thread, the CL used a thread_local variable to cache a per-thread crash key. The actual crash key name included the thread ID since crash keys are global. However, this turned out not to work well either: thread IDs can be reused, but crash key names must be unique for the lifetime of the process. Thus, a thread that ended up reusing a previous thread ID would end up trying to recreate a crash key with the same name. Bug: 1414218 Change-Id: Ie7753fc501b10ce1c2d904bf285caba54a8ee365 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4310734 Reviewed-by: Robert Sesek <rsesek@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1113710}
- Loading branch information