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

Construct FormatTokenEnum.TOKENS during class initialization #3688

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

katzyn
Copy link
Contributor

@katzyn katzyn commented Dec 5, 2022

Closes #3687.

I don't think that race in the current implementation is really possible with OpenJDK-based JVMs, this method is not expected to be compiled. But delayed initialization is meaningless anyway, because initTokens() always called immediately after initialization of FormatTokenEnum class.

@katzyn katzyn merged commit 96a5184 into h2database:master Dec 5, 2022
@katzyn katzyn deleted the to_date branch December 5, 2022 13:27
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.

Possible Race Condition in ToDateTokenizer.initCache()/.initTokens()
1 participant