-
Notifications
You must be signed in to change notification settings - Fork 419
Synchronization layer #273
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
Conversation
It was polluting global Ruby load space
I'm sorry for not having an opportunity to provide detailed feedback yet. I'm participating in SpaceApps this weekend and I've been busy preparing. I did look over the PR and I really like the direction you have taken. 👍 Consolidating the helpers into 'engine' is a nice redactor. The fact that it touched so many files is an indication of how necessary that was. |
check the condition at the begging too
16bd67f
to
95a283c
Compare
95a283c
to
52fdb3e
Compare
@@ -3,16 +3,17 @@ | |||
# user that they should use the new implementation instead. | |||
|
|||
if defined?(Atomic) | |||
warn <<-RUBY | |||
warn <<-TXT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should consider removing this entirely for 0.9. since this message was introduced in 0.8. We definitely do not want it in the 1.0 release.
Thanks for reviewing. Found one more problem which needs fixing. Please do not merge yet. |
990bdf8
to
18d56fa
Compare
The issue I've mentioned is fixed in e78b4a5 but I am experiencing failing JRuby tests (e.g. cyclic_barrier), it happens only when whole suite runs, if executed in isolation it's fine :/ I need to find the reason for that before we can merge. |
@pitr-ch I'm free this evening. I'll work on it tonight, too. Between the two of us we should be able to figure it out. We're pretty smart dudes. :-) |
@pitr-ch OK, so apparently I'm not as smart as I think I am. I am able to consistently reproduce the failed tests on JRuby but I have been unable to isolate the upstream tests that are causing the problem. Have you had any luck? |
Thanks @jdantonio,
I am going to sleep on it before deciding what to do next :) update: I've read your comment after posting this. I am also feeling pretty dumb, after 3 days of intermittent investigation. |
It looks like if |
734da17
to
524592a
Compare
Interesting. I'll pull the latest branch and see if it works for me, too. Thanks for keeping at it! |
@pitr-ch As far as I can tell your latest update fixed it. On my local machine I rebased this branch onto master (where I merged PR #275) and the tests pass on both JRuby and MRI. I haven't pushed that update yet because I wanted to coordinate with you, first. I'm comfortable rebasing this PR from master then merging it. That will allow us to work on the other PRs. I also plan to revisit the at_exit handlers for the global thread pools and fix the discrepancy you pointed out a couple of weeks ago. Are you comfortable with us committing this PR? |
Thanks. I'll need to fix few TODOs in the code and verify that all the failing tests are known intermittently failing tests. After that, I'll merge it. @jdantonio please review #272 first, I've already touched the at_exit handlers there. |
3fa45c8
to
e5fb607
Compare
e5fb607
to
44b3863
Compare
95d2a99
to
759c025
Compare
@pitr-ch Can we delete this branch? |
@jdantonio done |
Thank you! |
link #241
If you agree with the approach I'll merge this PR because of fixes in d66f616 and I'll start migrating all the other classes to this layer in another PR. Event is migrated as an example.