Snailclimb / Snailclimb/JavaGuide
关于Disruptor中填充了多少字节的补充
Open
Nobody has claimed this yet.
perfect content
- Dominant language
- JavaScript
- Stars
- 159k
- Forks
- 46.1k
- Avg merge
- 14h 36m
- Merged PRs (30d)
- 6
Description
如下为 Java Guide网站上所述:
在源码中,一共有两个地方添加了无效数据填充来解决伪共享问题,一个是消费者和生产者的进度序号 Sequence,一个是 放置数据的环形数组 RingBuffer,如下:
- Sequence 中填充的无效字节:
- RingBuffer 中填充的无效字节主要包含在数组中,数组存储的数据并不是全部都是有效数据,而是 无效填充+有效数据 的组合,如下所示:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the Java Guide content and the referenced Disruptor source shown in the issue images. Verify how padding is applied to Sequence and RingBuffer, including the byte counts, then update the relevant guide section so both cases are explained accurately and consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100