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

Make ByteBufferDataChunk.isReleased and ByteBufDataChunk.isReleased thread-safe #6899

Merged
merged 2 commits into from
May 24, 2023

Conversation

romain-grecourt
Copy link
Contributor

Fixes #6894

… to use AtomicBoolean (helidon-io#6846)

* Update ByteBufferDataChunk.isReleased and ByteBufDataChunk.isReleased to use an AtomicBoolean.
Fixes helidon-io#6845

* Remove bit magic, add comments

* Use VarHandle

* use ExceptionInInitializerError instead of RuntimeException

* Use int instead of boolean for the volatile field

* fix checkstyle
@romain-grecourt romain-grecourt added this to the 3.2.1 milestone May 24, 2023
@romain-grecourt romain-grecourt self-assigned this May 24, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 24, 2023
@romain-grecourt romain-grecourt changed the title Update ByteBufferDataChunk.isReleased and ByteBufDataChunk.isReleased to use AtomicBoolean Make ByteBufferDataChunk.isReleased and ByteBufDataChunk.isReleased thread-safe May 24, 2023
barchetta
barchetta previously approved these changes May 24, 2023
@barchetta barchetta modified the milestones: 3.2.1, 3.2.2 May 24, 2023
@romain-grecourt romain-grecourt merged commit ed4eaab into helidon-io:helidon-3.x May 24, 2023
@romain-grecourt romain-grecourt deleted the gh-6894 branch May 24, 2023 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[3.x] MultiPart IllegalReferenceCountException: refCnt: 0, decrement: 1
2 participants