我正在研究LMAX Disruptor 的源代码,我进入了RingBuffer
抽象类。为什么里面正好有 7 个长字段 (p1 ... p7) RingBufferPad
?这是实际代码:
https ://github.com/LMAX-Exchange/disruptor/blob/master/src/main/java/com/lmax/disruptor/RingBuffer.java
abstract class RingBufferPad
{
protected long p1, p2, p3, p4, p5, p6, p7;
}
abstract class RingBufferFields<E> extends RingBufferPad
{
....