-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[WIP] Testing fixing approaches for tsan RxAtomic issues #1860
[WIP] Testing fixing approaches for tsan RxAtomic issues #1860
Conversation
Very cool !! |
@andyj-at-aspin |
Could it be that |
Also, @andyj-at-aspin - if you could provide a project reproducing that, it might be easier to debug. |
Hi @LucianoPAlmeida , This looked like a really promising approach, but unfortunately after testing it it doesn't seem to fix the issue. After turning on the thread sanitizer for the unit tests, failures are still reported for atomic operations, although the tests itself pass without it :( |
@freak4pc Now that you point out, I have a guess on what is happening :))
I'm quite sure that this is the issue, but will run some tests and let you guys know :)) |
Generated by 🚫 Danger |
Put it on WIP, testing another approach that seems to fix it. |
Well this branch now works fine without any TSAN reports for my project. The boxing into a class satisfies the issue I had already though I'd explained that it was the mutability of the swift struct that was at issue, not the locking mechanisms. I only didn't mention it because I saw you guys were so keen on performance and I didn't know if moving to a class would effect that. I'm a bit worried that the CI failures from Travis mean this branch somehow has a fatal flaw but that's beyond by understanding. |
@andyj-at-aspin Thank's for the test :)) I'm still trying to figure out some things to make this pass CI, but I think is just files imported and some script validations. |
@LucianoPAlmeida I've fixed some issues here https://github.com/ReactiveX/RxSwift/tree/LucianoPAlmeida-no-sanitize-thread-atomic We can probably remove |
Looks great! |
@kzaher Awesome :)) |
Fixes #1853.