Skip to content

Bug fix: make cache fields non-static to match instance synchronization#6

Open
karlvr wants to merge 1 commit into
violetlib:masterfrom
karlvr:fix/static-cache-fields
Open

Bug fix: make cache fields non-static to match instance synchronization#6
karlvr wants to merge 1 commit into
violetlib:masterfrom
karlvr:fix/static-cache-fields

Conversation

@karlvr
Copy link
Copy Markdown
Contributor

@karlvr karlvr commented Mar 25, 2026

The cache fields were static but synchronized methods use instance-level locking, which would not protect the shared map if multiple instances were created. Obviously we don't create more than one instance, but perhaps a little house keeping to protect in future.

The cache fields were static but synchronized methods use instance-level
locking, which would not protect the shared map if multiple instances
were created.
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