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

Duplicate buffer for thread-safe aliasing. #19405

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mernst-github
Copy link

Fixes #10697: UnsafeDirectNioDecoder modifies shared buffer instance when performing aliased read.

I've included a test-ish reproducer in form of a unit test that fails fairly reliably, let me know whether you'd want this merged.

@mernst-github mernst-github requested a review from a team as a code owner November 26, 2024 10:50
@mernst-github mernst-github requested review from shaod2 and removed request for a team November 26, 2024 10:50
@acozzette acozzette added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Nov 26, 2024
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Nov 26, 2024
copybara-service bot pushed a commit that referenced this pull request Nov 27, 2024
Fixes #10697: UnsafeDirectNioDecoder modifies shared buffer instance when performing aliased read.

I've included a test-ish reproducer in form of a unit test that fails fairly reliably, let me know whether you'd want this merged.

Closes #19405

COPYBARA_INTEGRATE_REVIEW=#19405 from mernst-github:mernst/aliasing 1d97209
FUTURE_COPYBARA_INTEGRATE_REVIEW=#19405 from mernst-github:mernst/aliasing 1d97209
PiperOrigin-RevId: 700734396
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.

Java: ByteString / UnsafeDirectNioDecoder share ByteBuffer instance in non-threadsafe way
2 participants