From 45da63b64ef6adf63e82f66504755eb70d0df819 Mon Sep 17 00:00:00 2001
From: Florian Angerer <florian.angerer@oracle.com>
Date: Fri, 15 Sep 2017 10:10:37 +0200
Subject: [PATCH] Synchronizing initialization of static R version info.

---
 .../src/com/oracle/truffle/r/runtime/RVersionInfo.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RVersionInfo.java b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RVersionInfo.java
index 3fd2193add..ab6cf3ddf4 100644
--- a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RVersionInfo.java
+++ b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RVersionInfo.java
@@ -79,7 +79,7 @@ public enum RVersionInfo {
         return Character.toLowerCase(s.charAt(0)) + s.substring(1);
     }
 
-    private static void initialize() {
+    private synchronized static void initialize() {
         if (ListValues == null) {
             CompilerDirectives.transferToInterpreterAndInvalidate();
             ListValues = new String[VALUES.length];
-- 
GitLab