a347534f75ccd827ce2864c2941adb25ea824daf
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 1
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 4 | ||
Rename Method private pollMaybeEmpty(buffer E[], offset long, consumerPosition long) : E renamed to private pollSlowPath(buffer E[], offset long, consumerPosition long) : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Method private positionOnCycle(producerCycleClaim long, positionOnCycleMask int) : int renamed to private positionWithinCycle(producerCycleClaim long, positionOnCycleMask int) : int in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Method private isBackPressured(producerPosition long) : boolean renamed to private isFull(producerPosition long) : boolean in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Method private cycleId(producerCycleClaim long, cycleIdBitShift int) : long renamed to private producerClaimCycleId(producerCycleClaim long, cycleIdBitShift int) : long in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Variable | 10 | ||
Rename Variable nextActiveCycle : int to nextActiveCycleIndex : int in method private rotateCycle(activeCycleIndex int, producerCycleClaim long, cycleIdBitShift int, maxCycleId long) : void in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Variable producerPosition : long to tempPosition : long in method public offer(e E) : boolean in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Variable activeCycle : int to activeCycleIndex : int in method public offer(e E) : boolean in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Variable cycleId : long to pCycleId : long in method private rotateCycle(activeCycleIndex int, producerCycleClaim long, cycleIdBitShift int, maxCycleId long) : void in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Variable producerActiveCycleClaim : long to tempCycleClaim : long in method public offer(e E) : boolean in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Variable positionOnCycle : int to positionWithinCycle : int in method public offer(e E) : boolean in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Variable claimLimit : long to producerLimit : long in method private isFull(producerPosition long) : boolean in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Variable positionOnActiveCycle : int to tempCycleId : long in method public offer(e E) : boolean in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Variable producerElementOffset : long to offset : long in method private soCycleElement(buffer E[], e E, activeCycleIndex int, positionWithinCycle int, cycleLengthLog2 int) : void in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Variable producerOffset : int to indexInBuffer : int in method private soCycleElement(buffer E[], e E, activeCycleIndex int, positionWithinCycle int, cycleLengthLog2 int) : void in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Attribute | 1 | ||
Rename Attribute positionOnCycleMask : int to positionWithinCycleMask : int in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Change Variable Type | 1 | ||
Change Variable Type positionOnActiveCycle : int to tempCycleId : long in method public offer(e E) : boolean in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Variable | 2 | ||
Extract Variable activeCycleId : long in method public offer(e E) : boolean from class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Variable buffer : E[] in method public peek() : E from class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Inline Variable | 1 | ||
Inline Variable claimLimit : long in method public offer(e E) : boolean from class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method | 15 | ||
Extract Method private spinForElement(buffer E[], offset long) : E extracted from public peek() : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private signalConsumerProgress(consumerPosition long, buffer E[], offset long) : void extracted from public drain(c Consumer<E>, limit int) : int in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private circularArrayOffset(consumerPosition long, mask long) : long extracted from public drain(c Consumer<E>, limit int) : int in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private circularArrayOffset(consumerPosition long, mask long) : long extracted from public poll() : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private signalConsumerProgress(consumerPosition long, buffer E[], offset long) : void extracted from public drain(c Consumer<E>, w WaitStrategy, exit ExitCondition) : void in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private signalConsumerProgress(consumerPosition long, buffer E[], offset long) : void extracted from private pollMaybeEmpty(buffer E[], offset long, consumerPosition long) : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private circularArrayOffset(consumerPosition long, mask long) : long extracted from public peek() : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private circularArrayOffset(consumerPosition long, mask long) : long extracted from public drain(c Consumer<E>, w WaitStrategy, exit ExitCondition) : void in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private signalConsumerProgress(consumerPosition long, buffer E[], offset long) : void extracted from public poll() : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private signalConsumerProgress(consumerPosition long, buffer E[], offset long) : void extracted from public relaxedPoll() : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private peekSlowPath(buffer E[], consumerPosition long, offset long) : E extracted from public peek() : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private soCycleElement(buffer E[], e E, activeCycleIndex int, positionWithinCycle int, cycleLengthLog2 int) : void extracted from public offer(e E) : boolean in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private circularArrayOffset(consumerPosition long, mask long) : long extracted from public relaxedPoll() : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private spinForElement(buffer E[], offset long) : E extracted from private pollMaybeEmpty(buffer E[], offset long, consumerPosition long) : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Extract Method private circularArrayOffset(consumerPosition long, mask long) : long extracted from public relaxedPeek() : E in class org.jctools.queues.MpscRelaxedArrayQueue | From | To | |
Rename Parameter | 1 | ||
Rename Parameter activeCycle : int to activeCycleIndex : int in method private rotateCycle(activeCycleIndex int, producerCycleClaim long, cycleIdBitShift int, maxCycleId long) : void in class org.jctools.queues.MpscRelaxedArrayQueue | From | To |