Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taskdump: implement task dumps for multi-thread runtime #5717

Merged
merged 4 commits into from
Jun 6, 2023

Commits on Jun 5, 2023

  1. taskdump: implement task dumps for multi-thread runtime

    This PR implements task dumps on the multi-thread runtime. It
    complements tokio-rs#5608, which implemented task dumps on the current-thread
    runtime.
    jswrenn committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    0ef8646 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b551b1 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. tokio: Use Barrier::wait_timeout to avoid taskdump deadlocks.

    Previously, a deadlock could occur if a trace was initiated in the
    midst of shutdown: The tracing worker would wait endlessly for the
    other worker to reach the trace start barrier; the thread shutting
    down would wait endlessly for the tracing thread to finish tracing.
    Now, the tracing thread will wait a generous 250ms for workers to
    synchronize at the trace start barrier, or else abort the trace.
    jswrenn committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    2ad3939 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ddfc38c View commit details
    Browse the repository at this point in the history