Skip to content

2.x: fix flatMapX calling SpscLinkedArrayQueue.offer concurrently #4678

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 1 commit into from
Oct 6, 2016

Conversation

akarnokd
Copy link
Member

@akarnokd akarnokd commented Oct 6, 2016

I forgot to synchronize the offer part of the new flatMapX operators (since of course, Spsc is for single producer only but here there could be concurrent non fast-path queueing of values).

(There is an MpscLinkedArrayQueue in JCTools but I'm not confident in it and don't want to use MpscLinkedQueue due to the node allocation.)

@akarnokd akarnokd added the Bug label Oct 6, 2016
@akarnokd akarnokd added this to the 2.0 RC4 milestone Oct 6, 2016
@codecov-io
Copy link

Current coverage is 82.18% (diff: 66.66%)

Merging #4678 into 2.x will increase coverage by 0.13%

@@                2.x      #4678   diff @@
==========================================
  Files           565        565          
  Lines         37414      37426    +12   
  Methods           0          0          
  Messages          0          0          
  Branches       5746       5746          
==========================================
+ Hits          30698      30759    +61   
+ Misses         4626       4586    -40   
+ Partials       2090       2081     -9   

Powered by Codecov. Last update 4562e69...9dd11ef

@akarnokd akarnokd merged commit d9d1b7e into ReactiveX:2.x Oct 6, 2016
@akarnokd akarnokd deleted the FlatMapXFix branch October 6, 2016 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants