Skip to content
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

Revert 0c4280dcc59dd2a8c21f29ddf12f04a1e85c4141 #894

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

Scottmitch
Copy link
Member

Motivation:
0c4280d attempted to avoid reclaiming of old
memory when resized for cases where the memory maybe shared by multiple threads.
However modifying a Buffer accross mulitiple threads may lead to visibility
issues where the reference to the new array maybe visible before the memory is
copied into the array, and in general requires external synchornization.

Modificiations:

  • Revert the freeDirect(ByteBuffer) override introduced in
    0c4280d

Result:
We can reclaim intermediate memory from resize operations again.

Motivation:
0c4280d attempted to avoid reclaiming of old
memory when resized for cases where the memory maybe shared by multiple threads.
However modifying a Buffer accross mulitiple threads may lead to visibility
issues where the reference to the new array maybe visible before the memory is
copied into the array, and in general requires external synchornization.

Modificiations:
- Revert the freeDirect(ByteBuffer) override introduced in
0c4280d

Result:
We can reclaim intermediate memory from resize operations again.
@Scottmitch Scottmitch merged commit e4725fb into apple:master Dec 12, 2019
@Scottmitch Scottmitch deleted the revert branch December 12, 2019 02:18
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