Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@akoeplinger
Copy link
Member

There is a race condition in the test, the "#2" Assert() can be reached before e1 is assigned if the thread
that handles e1 gets preempted by the scheduler (this is more likely on single-core systems). Adding a sleep before checking the values fixes this for now.

@marek-safar can you verify this doesn't change the behavior of the test (you added it in b787868)?

There is a race condition in the test, the #2 Assert() can be reached before e1 is assigned if the thread
that handles e1 gets preempted by the scheduler (this is more likely on single-core systems).

Adding a sleep before checking the values fixes this for now.

Commit licensed under MIT/X11.
@marek-safar
Copy link
Member

I don't like unreliable Sleep and fixed the issue differently.

@akoeplinger akoeplinger deleted the fix-lazy-test branch June 23, 2014 12:36
@akoeplinger
Copy link
Member Author

As long as it works I don't care :)

AlexKnauth pushed a commit to AlexKnauth/mono that referenced this pull request Nov 2, 2023
…ditor-support

Incremental gc editor support
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.

2 participants