Skip to content

DSP-19407 after upgrade review remarks #19

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

Merged

Conversation

jtgrabowski
Copy link

Reason for reverting incrementMemoryCounter implementation (from
Sergio's comment):

"..moving from a CAS loop to the double addAndGet() might be faster, but
by doing so, a single big-ish allocation which goes over the limit
could cause concurrent small allocations to fail as well before the
memory limit is brought back below threshold via
DIRECT_MEMORY_COUNTER.addAndGet(-capacity)"

@@ -38,7 +38,7 @@ public int compare(ScheduledFutureTask<?> o1, ScheduledFutureTask<?> o2) {
}
};

PriorityQueue<ScheduledFutureTask<?>> scheduledTaskQueue;
protected PriorityQueue<ScheduledFutureTask<?>> scheduledTaskQueue;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also mention this change in the final commit message?

- Reason for reverting incrementMemoryCounter implementation (from
Sergio's comment):

"..moving from a CAS loop to the double addAndGet() might be faster, but
by doing so, a single big-ish allocation which goes over the limit
could cause concurrent small allocations to fail as well before the
memory limit is brought back below threshold via
DIRECT_MEMORY_COUNTER.addAndGet(-capacity)"

- scheduledTaskQueue is now protected to simplify DB-3884

"we might need to peek at the scheduled queue ourselves"
@jtgrabowski jtgrabowski force-pushed the DSP-19407-upgrade-review-remarks branch from d55e60e to 1731329 Compare December 10, 2019 14:39
@jtgrabowski jtgrabowski merged commit 1c6673a into dse-netty-4.1.34.Final Dec 10, 2019
@jtgrabowski jtgrabowski deleted the DSP-19407-upgrade-review-remarks branch December 10, 2019 14:40
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.

2 participants