Skip to content
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

mpmc xadd q poll wasn't handling correctly chunkSize = 1 pooled case #281

Merged
merged 1 commit into from Jan 2, 2020

Conversation

franz1981
Copy link
Collaborator

QueueSanityTest::testSize with chunkSize = 1 and 1 recycled chunks was
failing with a blocked poll because it wasn't handling ccChunkIndex ==
ciChunkIndex as an isFirstElementOfNextChunk case

@coveralls
Copy link

coveralls commented Jan 2, 2020

Pull Request Test Coverage Report for Build 639

  • 32 of 34 (94.12%) changed or added relevant lines in 2 files are covered.
  • 18 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.1%) to 85.865%

Changes Missing Coverage Covered Lines Changed/Added Lines %
jctools-core/src/main/java/org/jctools/queues/MpmcUnboundedXaddArrayQueue.java 24 26 92.31%
Files with Coverage Reduction New Missed Lines %
jctools-core/src/main/java/org/jctools/maps/NonBlockingHashMap.java 1 79.48%
jctools-core/src/main/java/org/jctools/queues/MpmcUnboundedXaddArrayQueue.java 2 93.94%
jctools-core/src/main/java/org/jctools/maps/NonBlockingIdentityHashMap.java 4 76.56%
jctools-core/src/main/java/org/jctools/maps/NonBlockingHashMapLong.java 11 79.65%
Totals Coverage Status
Change from base Build 634: 0.1%
Covered Lines: 4708
Relevant Lines: 5483

💛 - Coveralls

@franz1981 franz1981 force-pushed the poll_blocked branch 2 times, most recently from caca969 to f97dd96 Compare January 2, 2020 10:09
QueueSanityTest::testSize with chunkSize = 1 and 1 recycled chunks was
failing with a blocked poll because it wasn't handling ccChunkIndex ==
ciChunkIndex as an isFirstElementOfNextChunk case
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.

None yet

3 participants