-
Notifications
You must be signed in to change notification settings - Fork 45.4k
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
关于Disruptor中填充了多少字节的补充 #2259
Labels
perfect content
improve the content
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如下为 Java Guide网站上所述:
![image](https://private-user-images.githubusercontent.com/117974563/305084261-7e35ade9-c2c8-4742-b3c4-4963f2e83575.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwOTU2OTYsIm5iZiI6MTcyMTA5NTM5NiwicGF0aCI6Ii8xMTc5NzQ1NjMvMzA1MDg0MjYxLTdlMzVhZGU5LWMyYzgtNDc0Mi1iM2M0LTQ5NjNmMmU4MzU3NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxNlQwMjAzMTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMGQ4ZDY4OTM4Y2IxYmViNjZlZjVjMGQzM2ExYjZkMTdlYzg2MmRhMzkzMWRmMGNlZDg5Njk2MWRlMTVkM2EyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.WApgp4fNl-VNN5ccBX1LNmt6l1FGX0bvnRtobqLJY5s)
在源码中,一共有两个地方添加了无效数据填充来解决伪共享问题,一个是消费者和生产者的进度序号 Sequence,一个是 放置数据的环形数组 RingBuffer,如下:
The text was updated successfully, but these errors were encountered: