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

Thread safety fix #622

Closed
wants to merge 2 commits into from
Closed

Thread safety fix #622

wants to merge 2 commits into from

Conversation

loybert
Copy link

@loybert loybert commented Mar 8, 2019

cherry picked modifications from pending PR #477, to check if it works with current CI-settings

loybert added 2 commits March 8, 2019 16:25
> marshall-lee commented on 3 Aug 2016

> This PR aims to fix several issues with Relationship cache:
> 
> 1. It's not threadsafe, so I propose to use a TLS variable for this.
> 2. Memory obtained by cache remains non-freed before the next run of `serialize`. I think it should be freed immediately.
> 3. Memory should be freed in `ensure` block to prevent memory bloating in case of exception.
> 
> _There are only two hard things in Computer Science: cache invalidation and naming things._
adapted changes on `lib/axlsx/rels/relationship.rb` from centro@41ed34b
@loybert
Copy link
Author

loybert commented Mar 11, 2019

will close this, because it is updated in #477 now :)

@loybert loybert closed this Mar 11, 2019
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.

1 participant