Skip to content

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

Merged
nitsanw merged 1 commit into
JCTools:masterfrom
franz1981:poll_blocked
Jan 2, 2020
Merged

mpmc xadd q poll wasn't handling correctly chunkSize = 1 pooled case#281
nitsanw merged 1 commit into
JCTools:masterfrom
franz1981:poll_blocked

Conversation

@franz1981

Copy link
Copy Markdown
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

coveralls commented Jan 2, 2020

Copy link
Copy Markdown

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

Comment thread jctools-core/src/main/java/org/jctools/queues/MpmcUnboundedXaddChunk.java Outdated
@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.

3 participants