Skip to content

Pool table instances to make PureJavaSnappy thread safe#271

Merged
xerial merged 1 commit into
xerial:masterfrom
bokken:concurrent_pure_java
Jan 20, 2021
Merged

Pool table instances to make PureJavaSnappy thread safe#271
xerial merged 1 commit into
xerial:masterfrom
bokken:concurrent_pure_java

Conversation

@bokken

@bokken bokken commented Dec 2, 2020

Copy link
Copy Markdown
Contributor

This fixes #270

@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

bokken commented Jan 20, 2021

Copy link
Copy Markdown
Contributor Author

@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

xerial commented Jan 20, 2021

Copy link
Copy Markdown
Owner

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PureJavaSnappy is not thread-safe

2 participants