Skip to content

DSP-19407 after upgrade review remarks#19

Merged
jtgrabowski merged 1 commit intodse-netty-4.1.34.Finalfrom
DSP-19407-upgrade-review-remarks
Dec 10, 2019
Merged

DSP-19407 after upgrade review remarks#19
jtgrabowski merged 1 commit intodse-netty-4.1.34.Finalfrom
DSP-19407-upgrade-review-remarks

Conversation

@jtgrabowski
Copy link
Copy Markdown

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)"

Copy link
Copy Markdown

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