Skip to content
Snippets Groups Projects
Commit e6233ee8 authored by Florian Angerer's avatar Florian Angerer
Browse files

[GR-5986] Synchronizing initialization of static R version info.

PullRequest: fastr/1144
parents 5d8d789b 6ab2870a
Branches
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ public enum RVersionInfo { ...@@ -79,7 +79,7 @@ public enum RVersionInfo {
return Character.toLowerCase(s.charAt(0)) + s.substring(1); return Character.toLowerCase(s.charAt(0)) + s.substring(1);
} }
private static void initialize() { private static synchronized void initialize() {
if (ListValues == null) { if (ListValues == null) {
CompilerDirectives.transferToInterpreterAndInvalidate(); CompilerDirectives.transferToInterpreterAndInvalidate();
ListValues = new String[VALUES.length]; ListValues = new String[VALUES.length];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment