Skip to content

Vanishing threads #1254

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

Merged
merged 5 commits into from
May 22, 2020

Conversation

jimingham
Copy link

Handle the case where the thread we are running an expression on exits while running the expression.

jimingham and others added 5 commits May 22, 2020 12:13
undefined reference to pthread_create

I skipped the test till I can figure out why this didn't build.
200 microseconds is not enough time for any expression to execute
reliably. On linux, calling pthread_exit can result in call to dlopen,
which cannot complete in that time, particularly when running under a
debugger.

On linux, this test failed all the time, on macos, about two thirds of
runs were failing.  This patch increases the timeout to 100ms, which is
enough to get it passing reliably on linux, though I wouldn't be
surprised if an even bigger timeout would be needed for remote test
runs.
@jimingham jimingham requested a review from fredriss May 22, 2020 21:02
@fredriss
Copy link

This touches only lldb, which is not tested by PRs. I'm merging it

@fredriss fredriss merged commit b8534de into swiftlang:apple/stable/20200108 May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants