Pool table instances to make PureJavaSnappy thread safe by bokken · Pull Request #271 · xerial/snappy-java

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@bokken

Copy link Copy Markdown

Contributor

@bokken bokken commented

Dec 2, 2020

This fixes #270

xerial reacted with eyes emoji

@xerial xerial self-assigned this

Dec 7, 2020
table);
compressed.position(compressed.position() + written);
return written;
final short[] table = getTable();
Copy link Copy Markdown

Contributor Author

Choose a reason for hiding this comment

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

this does not need to be obtained from within the synchronized blocks

@bokken

Copy link Copy Markdown

Contributor Author

bokken commented

Jan 20, 2021

@xerial any idea when we can get this fix released?
I just ran into an issue where the pure java implementation was used unexpectedly (directory permission issues where lib was extracted) and it resulted in corrupt content (rather than the previous failure if lib could not be loaded).

@xerial xerial merged commit 110727e into xerial:master

Jan 20, 2021

@xerial

Copy link Copy Markdown

Owner

xerial commented

Jan 20, 2021

I'm now preparing 1.1.8.3, including the CRC32 improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

@xerial xerial

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

PureJavaSnappy is not thread-safe

2 participants

@bokken @xerial